-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
26 lines (22 loc) · 1.08 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
import { AppRegistry, Platform, UIManager } from 'react-native';
import App from './src/App';
import { name as appName } from './app.json';
import { developmentConfiguration, inject } from './src/inject';
import { Store } from './src/business/state/Store';
import { SimulatedDao } from './src/business/dao/SimulatedDao';
import { Storage } from './src/business/dao/Storage';
import { StorageManager } from './src/business/dao/StorageManager';
inject({
store: new Store(),
dao: new SimulatedDao(),
storage: new Storage(),
runConfig: developmentConfiguration,
// runConfig: anotherConfiguration,
});
StorageManager.init().then();
// Enables layout animation feature which allows for smooth automatic animations during layout changes,
// such as when new views are added or existing ones are removed. This is necessary because, by default,
// layout animations are not enabled on Android as they are on iOS.
if (Platform.OS === 'android' && UIManager.setLayoutAnimationEnabledExperimental)
UIManager.setLayoutAnimationEnabledExperimental(true);
AppRegistry.registerComponent(appName, () => App);