-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.js
More file actions
37 lines (28 loc) · 945 Bytes
/
index.js
File metadata and controls
37 lines (28 loc) · 945 Bytes
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
import './shim';
import React from 'react';
import {AppRegistry, StyleSheet} from 'react-native';
// For frameProcessor in 'react-native-vision-camera'
import 'react-native-reanimated';
import {name as appName} from './app.json';
import {AppStorageProvider} from './class/storageContext';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import {TailwindProvider} from 'tailwind-rn';
import utilities from './tailwind.json';
import App from './App';
const AppWithStorage = () => {
return (
<AppStorageProvider>
<TailwindProvider utilities={utilities}>
<GestureHandlerRootView style={styles.root}>
<App />
</GestureHandlerRootView>
</TailwindProvider>
</AppStorageProvider>
);
};
AppRegistry.registerComponent(appName, () => AppWithStorage);
const styles = StyleSheet.create({
root: {
flex: 1,
},
});