-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
29 lines (26 loc) · 919 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import * as React from 'react';
import { StyleSheet, View, StatusBar } from 'react-native';
import { NavigationContainer, DarkTheme } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import BottomTabNavigator from './navigation/BottomTabNavigator';
import { StocksProvider } from './contexts/StocksContext';
const Stack = createStackNavigator();
export default function App(props) {
return (
<View style={styles.container}>
<StocksProvider>
{Platform.OS === 'ios' && <StatusBar barStyle="default" />}
<NavigationContainer theme={DarkTheme}>
<Stack.Navigator>
<Stack.Screen name="Home" component={BottomTabNavigator} />
</Stack.Navigator>
</NavigationContainer>
</StocksProvider>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});