-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
38 lines (32 loc) · 1.19 KB
/
index.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
27
28
29
30
31
32
33
34
35
36
37
38
import { AppRegistry, NativeModules, Platform, YellowBox } from 'react-native';
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
import Application from './src/App';
if (Platform.OS === 'android') {
if (NativeModules.UIManager.setLayoutAnimationEnabledExperimental)
NativeModules.UIManager.setLayoutAnimationEnabledExperimental(true);
}
AppRegistry.registerComponent('iola', () => gestureHandlerRootHOC(Application));
/**
* TODO: Remove when it will be possible
*/
YellowBox.ignoreWarnings([
/**
* Temporarily disable warning about deprecated React lifecycle methods.
* We should wait till native-base adds support of the latest React and then remove this code.
*/
'Warning: componentWillMount',
'Warning: componentWillUpdate',
'Warning: componentWillReceiveProps',
'Warning: isMounted',
/**
* Temporarily disable warning about require cycle,
* since all of them are from node_modules and we can not fix them
*/
'Require cycle:',
/**
* Temporarily disable warning about deprecated AsyncStorage.
* Whe should remove it when storybook will be updated:
* https://github.com/storybooks/storybook/issues/6078
*/
'Warning: Async Storage',
]);