import * as React from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { View, StyleSheet, Image,Platform } from 'react-native'; import HomeScreens from './src/views/Home/HomeScreen'; import ShopScreens from './src/views/ShopScreen'; import ProfileScreens from './src/views/ProfileScreen'; import 'react-native-gesture-handler'; import { enableScreens } from 'react-native-screens'; // import { AMapSdk } from 'react-native-amap3d'; // AMapSdk.init(Platform.select({ // android: '812efd3a950ba3675f928630302c6463', // })); enableScreens(); type RootStackParamList = { '爱车': undefined; '商城': undefined; '个人中心': undefined; }; const Tab = createBottomTabNavigator(); function App() { return ( ( ), }} /> ( ), }} /> ( ), }} /> ); } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', }, }); export default App;