-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
27 lines (25 loc) · 903 Bytes
/
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
import { NavigationContainer } from '@react-navigation/native';
import { StatusBar } from 'expo-status-bar';
import { KeyboardAvoidingView, Platform } from 'react-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { Provider } from 'react-redux';
import RootNavigator from './src/navigators/RootNavigator';
import { store } from './src/store';
export default function App() {
return (
<Provider store={store}>
<NavigationContainer>
<SafeAreaProvider>
<KeyboardAvoidingView
className="flex-1"
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
// keyboardVerticalOffset={Platform.OS === 'ios' ? -64 : 0}
>
<RootNavigator />
<StatusBar style="auto" />
</KeyboardAvoidingView>
</SafeAreaProvider>
</NavigationContainer>
</Provider>
);
}