-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
42 lines (37 loc) · 1.08 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, { useEffect } from 'react';
import SplashScreen from 'react-native-lottie-splash-screen';
import { Provider as PaperProvider } from 'react-native-paper';
import { SafeAreaView } from 'react-native-safe-area-context';
import { ViewStyle } from 'react-native';
import ImagePaletteContextProvider from './src/context/ImagePaletteContext';
import RootNavigation from './src/screens';
import SpotifyAuthContextProvider from './src/context';
if (__DEV__) {
// eslint-disable-next-line global-require
require('./ReactotronConfig');
}
const safeAreaStyle: ViewStyle = {
flex: 1,
};
function App() {
useEffect(() => SplashScreen.hide(), []);
return (
<SafeAreaView style={safeAreaStyle}>
<ImagePaletteContextProvider>
<SpotifyAuthContextProvider>
<PaperProvider>
<RootNavigation />
</PaperProvider>
</SpotifyAuthContextProvider>
</ImagePaletteContextProvider>
</SafeAreaView>
);
}
export default App;