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.

functions.js 523B

1234567891011121314151617181920212223
  1. // @flow
  2. import React from 'react';
  3. import { IconArrowBack } from '../../../../base/icons';
  4. import HeaderNavigationButton
  5. from '../HeaderNavigationButton';
  6. /**
  7. * Render header arrow back button for navigation.
  8. *
  9. * @param {Function} onPress - Callback for when the button is pressed
  10. * function.
  11. * @returns {ReactElement}
  12. */
  13. export function renderArrowBackButton(onPress: Function) {
  14. return (
  15. <HeaderNavigationButton
  16. onPress = { onPress }
  17. src = { IconArrowBack } />
  18. );
  19. }