import React from 'react';
import PropTypes from 'prop-types';
import HeaderButtons, { HeaderButton, Item } from 'react-navigation-header-buttons';
import { CustomIcon } from '../lib/Icons';
import { isIOS } from '../utils/deviceInfo';
import { COLOR_PRIMARY, COLOR_WHITE } from '../constants/colors';
import I18n from '../i18n';
const color = isIOS ? COLOR_PRIMARY : COLOR_WHITE;
export const headerIconSize = 23;
const CustomHeaderButton = React.memo(props => (
));
export const CustomHeaderButtons = React.memo(props => (
));
export const DrawerButton = React.memo(({ navigation, testID, ...otherProps }) => (
));
export const CloseModalButton = React.memo(({ navigation, testID }) => (
- navigation.pop()} testID={testID} />
));
export const CloseShareExtensionButton = React.memo(({ onPress, testID }) => (
{isIOS
?
:
}
));
export const MoreButton = React.memo(({ onPress, testID }) => (
));
export const LegalButton = React.memo(({ navigation, testID }) => (
navigation.navigate('LegalView')} testID={testID} />
));
DrawerButton.propTypes = {
navigation: PropTypes.object.isRequired,
testID: PropTypes.string.isRequired
};
CloseModalButton.propTypes = {
navigation: PropTypes.object.isRequired,
testID: PropTypes.string.isRequired
};
CloseShareExtensionButton.propTypes = {
onPress: PropTypes.func.isRequired,
testID: PropTypes.string.isRequired
};
MoreButton.propTypes = {
onPress: PropTypes.func.isRequired,
testID: PropTypes.string.isRequired
};
LegalButton.propTypes = {
navigation: PropTypes.object.isRequired,
testID: PropTypes.string.isRequired
};
export { Item };