mirror of
https://github.com/Blair-SGA-Dev-Team/blazerapp.git
synced 2024-09-19 11:22:14 -04:00
58 lines
941 B
JavaScript
58 lines
941 B
JavaScript
/**
|
|
* Sample React Native App
|
|
* https://github.com/facebook/react-native
|
|
*
|
|
* @format
|
|
* @flow strict-local
|
|
*/
|
|
|
|
import React from 'react';
|
|
import {
|
|
SafeAreaView,
|
|
StyleSheet,
|
|
ScrollView,
|
|
View,
|
|
Text,
|
|
StatusBar,
|
|
} from 'react-native';
|
|
|
|
import {
|
|
Header,
|
|
LearnMoreLinks,
|
|
Colors,
|
|
DebugInstructions,
|
|
ReloadInstructions,
|
|
} from 'react-native/Libraries/NewAppScreen';
|
|
|
|
import { NavigationContainer } from '@react-navigation/native'
|
|
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
|
|
|
|
const Tab = createBottomTabNavigator();
|
|
|
|
function Home(){
|
|
return (
|
|
<View/>
|
|
)
|
|
}
|
|
|
|
function Settings(){
|
|
return (
|
|
<View/>
|
|
)
|
|
}
|
|
|
|
class App extends React.Component {
|
|
render() {
|
|
return (
|
|
<NavigationContainer>
|
|
<Tab.Navigator>
|
|
<Tab.Screen name="Home" component={Home} />
|
|
<Tab.Screen name="Settings" component={Settings} />
|
|
</Tab.Navigator>
|
|
</NavigationContainer>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default App;
|