-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
50 lines (48 loc) · 1.79 KB
/
App.tsx
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 React from 'react';
import store, { persistStorageNote } from './src/redux/store';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { SafeAreaView, Text } from 'react-native';
import { NoteNavigation } from './src/navigation/note-navigator';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import NoteListScreen from './src/screen/note-screen';
import AddNote from './src/screen/add-note/add-note';
import SplashScreen from 'react-native-splash-screen';
const Stack = createNativeStackNavigator();
const firebaseConfig = {
apiKey: 'AIzaSyAtGfOJoaISmrMoYDzp_FrIjkZ87aHbIeA',
authDomain: 'privnote-cfcd6.firebaseapp.com',
databaseURL: 'https://privnote-cfcd6-default-rtdb.firebaseio.com',
projectId: 'privnote-cfcd6',
storageBucket: 'privnote-cfcd6.appspot.com',
messagingSenderId: '556280479080',
appId: '1:556280479080:web:a183e322bbef7577a16add',
measurementId: 'G-W6PDXPC924',
};
export default function App() {
React.useEffect(() => {
SplashScreen.hide();
});
return (
<Provider store={store}>
<PersistGate persistor={persistStorageNote}>
<NoteNavigation />
{/* <NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen
options={{ headerShown: false }}
name="Home"
component={NoteListScreen}
/>
<Stack.Screen
options={{ headerShown: false }}
name="Add Note"
component={AddNote}
/>
</Stack.Navigator>
</NavigationContainer> */}
</PersistGate>
</Provider>
);
}