Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HeaderButton.js 530B

12345678910111213141516171819202122
  1. import * as React from 'react';
  2. import {IconButton, withTheme} from 'react-native-paper';
  3. /**
  4. * Component used to display a header button
  5. *
  6. * @param props Props to pass to the component
  7. * @return {*}
  8. */
  9. function HeaderButton(props) {
  10. const {colors} = props.theme;
  11. return (
  12. <IconButton
  13. icon={props.icon}
  14. size={26}
  15. color={props.color !== undefined ? props.color : colors.text}
  16. onPress={props.onPress}
  17. />
  18. );
  19. }
  20. export default withTheme(HeaderButton);