-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
26 lines (22 loc) · 822 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
import React from 'react';
import { KeyboardAvoidingView, Platform, StatusBar } from 'react-native';
import { Provider } from 'react-redux'
import { store } from './src/application/store'
import { SafeAreaProvider } from 'react-native-safe-area-context';
import AppNavigator from 'navigation/AppNavigator';
const App = () => {
return (
<Provider store={store}>
<SafeAreaProvider>
<StatusBar hidden={false} backgroundColor="#FFF" barStyle="dark-content" translucent={false} />
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
keyboardVerticalOffset={Platform.OS === 'ios' ? -64 : 0}
style={{ flex: 1 }}>
<AppNavigator />
</KeyboardAvoidingView>
</SafeAreaProvider>
</Provider >
);
}
export default App;