|
@@ -0,0 +1,39 @@
|
|
|
+import React from 'react';
|
|
|
+import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
|
|
|
+import { useNavigation } from '@react-navigation/native';
|
|
|
+
|
|
|
+const TabScreen = () => {
|
|
|
+ const navigation = useNavigation();
|
|
|
+ const getJump = async (data) => {
|
|
|
+ navigation.navigate(data);
|
|
|
+ };
|
|
|
+ return (
|
|
|
+ <View style={styles.main}>
|
|
|
+ <View>
|
|
|
+ <TouchableOpacity onPress={() => getJump('Team')}>
|
|
|
+ <Text>球队</Text>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity onPress={() => getJump('Data')}>
|
|
|
+ <Text>数据</Text>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity onPress={() => getJump('Play')}>
|
|
|
+ <Text>PLAY</Text>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity onPress={() => getJump('Match')}>
|
|
|
+ <Text>赛事</Text>
|
|
|
+ </TouchableOpacity>
|
|
|
+ <TouchableOpacity onPress={() => getJump('Me')}>
|
|
|
+ <Text>我的</Text>
|
|
|
+ </TouchableOpacity>
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ );
|
|
|
+};
|
|
|
+
|
|
|
+const styles = StyleSheet.create({
|
|
|
+ main: {
|
|
|
+ paddingTop: 50,
|
|
|
+ },
|
|
|
+});
|
|
|
+
|
|
|
+export default TabScreen;
|