index.tsx 567 B

123456789101112131415161718192021222324252627
  1. import React from 'react';
  2. import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
  3. import { useNavigation } from '@react-navigation/native';
  4. import TabScreen from '../../components/Tab';
  5. const MeScreen = () => {
  6. const navigation = useNavigation();
  7. const getJump = async (data) => {
  8. navigation.navigate(data);
  9. };
  10. return (
  11. <View style={styles.main}>
  12. <View>
  13. 我的
  14. </View>
  15. <TabScreen></TabScreen>
  16. </View>
  17. );
  18. };
  19. const styles = StyleSheet.create({
  20. main: {
  21. paddingTop: 50,
  22. },
  23. });
  24. export default MeScreen;