-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
51 lines (44 loc) · 1.32 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import * as React from 'react'
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import DataPullButton from './components/DataPullButton';
import HomeScreen from './screens/HomeScreen';
import MainScreen from './screens/MainScreen';
import { CurrencyProvider } from './context/currency';
const Stack = createNativeStackNavigator();
const bgUrl = require('./assets/bg.png');
const headerOption = {
headerShown: true,
title: 'Converter',
headerStyle: {
backgroundColor: '#2DBBFE',
},
headerTitleStyle: {
color: '#FFF'
},
headerTintColor: '#FFF',
}
export default function App() {
return (
<CurrencyProvider>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} options={{ headerShown: false }} />
<Stack.Screen
name="Main"
component={MainScreen}
options={{
title: 'Converter',
headerTransparent: true,
headerTitleStyle: {
color: '#FFF'
},
headerTintColor: '#FFF',
headerRight: () => <DataPullButton />,
}}
/>
</Stack.Navigator>
</NavigationContainer>
</CurrencyProvider>
);
}