-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
35 lines (30 loc) · 1.04 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
import 'react-native-get-random-values';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Provider } from 'react-redux';
import { store } from './store/store';
import Home from './components/Home/Home';
import SingleNote from './components/SingleNote/SingleNote';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator screenOptions={{
headerStyle:{backgroundColor:'#F1DEC9'},
animation:'fade_from_bottom',
}}>
<Stack.Screen name='Home' component={Home} options={{
title:'All notes',
headerTitleStyle:{
fontSize:25,
},
}}/>
<Stack.Screen name='Note' component={SingleNote} options={{
headerBackVisible: false
}}/>
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}