Header.js 694 B

1234567891011121314151617181920212223
  1. import * as React from 'react';
  2. import { Platform } from 'react-native';
  3. import { StatusBar } from 'expo-status-bar';
  4. import Constants from 'expo-constants';
  5. import { Appbar } from 'react-native-paper';
  6. import { goBack } from '../navigation/RootNavigation';
  7. export default function Header() {
  8. return (
  9. <>
  10. <StatusBar backgroundColor="#FFC21C" style="light" translucent />
  11. <Appbar.Header dark>
  12. <Appbar.BackAction onPress={goBack} />
  13. <Appbar.Content
  14. title="忘记密码"
  15. titleStyle={{ textAlign: 'center', fontSize: 16 }}
  16. />
  17. <Appbar.Action icon="dots-vertical" />
  18. </Appbar.Header>
  19. </>
  20. );
  21. }