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.
40 lines
1.1 KiB
40 lines
1.1 KiB
import React from 'react';
|
|
|
|
import { StatusBar } from 'expo-status-bar';
|
|
import { SafeAreaView, StyleSheet, Text, View } from 'react-native';
|
|
import { NavigationContainer } from '@react-navigation/native';
|
|
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
|
|
|
import List from './pages/List';
|
|
import Learn from './pages/Learn';
|
|
import Playground from './pages/Playground';
|
|
|
|
import Header from './components/Header';
|
|
|
|
export default function App() {
|
|
|
|
const Tab = createBottomTabNavigator();
|
|
|
|
return (
|
|
<SafeAreaView style={styles.container}>
|
|
<Header/>
|
|
<StatusBar style="auto" />
|
|
<NavigationContainer>
|
|
<Tab.Navigator>
|
|
<Tab.Screen name="List" component={List} />
|
|
<Tab.Screen name="Learn" component={Learn} />
|
|
<Tab.Screen name="Playground" component={Playground} />
|
|
</Tab.Navigator>
|
|
</NavigationContainer>
|
|
</SafeAreaView>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: '#fff',
|
|
|
|
},
|
|
});
|