2020-08-09 16:37:46 -04:00
|
|
|
/**
|
|
|
|
* 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'
|
|
|
|
|
2020-08-09 17:01:25 -04:00
|
|
|
import Home from './Home'
|
|
|
|
import Calendar from './Calendar'
|
|
|
|
import Poll from './Poll'
|
|
|
|
import Clubs from './Clubs'
|
|
|
|
import More from './More'
|
2020-08-09 16:37:46 -04:00
|
|
|
|
2020-08-09 17:01:25 -04:00
|
|
|
const Tab = createBottomTabNavigator();
|
2020-08-09 16:37:46 -04:00
|
|
|
|
|
|
|
class App extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<NavigationContainer>
|
|
|
|
<Tab.Navigator>
|
|
|
|
<Tab.Screen name="Home" component={Home} />
|
2020-08-09 17:01:25 -04:00
|
|
|
<Tab.Screen name="Calendar" component={Calendar} />
|
|
|
|
<Tab.Screen name="Polls" component={Poll} />
|
|
|
|
<Tab.Screen name="Clubs" component={Clubs} />
|
|
|
|
<Tab.Screen name="More" component={More} />
|
2020-08-09 16:37:46 -04:00
|
|
|
</Tab.Navigator>
|
|
|
|
</NavigationContainer>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|