-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
35 lines (32 loc) · 1011 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
30
31
32
33
34
35
import 'react-native-gesture-handler';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { StatusBar } from 'expo-status-bar';
import React, { Fragment } from 'react';
import Home from './screens/Home';
import New from './screens/New';
const Stack = createNativeStackNavigator();
const forFade = ({ current }) => ({
cardStyle: {
opacity: current.progress,
},
});
export default function App() {
return (
<Fragment>
<StatusBar backgroundColor="#000000" translucent={true} style="light" />
<NavigationContainer>
<Stack.Navigator
initialRouteName="Home"
screenOptions={{
headerShown: false,
cardStyleInterpolator: forFade,
}}
>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="New" component={New} />
</Stack.Navigator>
</NavigationContainer>
</Fragment>
);
}