joplin/ReactNativeClient/main.js

21 lines
993 B
JavaScript
Raw Normal View History

2017-05-12 20:23:54 +00:00
// Note about the application structure:
// - The user interface and its state is managed by React/Redux.
// - Persistent storage to SQLite and Web API is handled outside of React/Redux using regular JavaScript (no middleware, no thunk, etc.).
// - Communication from React to SQLite is done by calling model methods (note.save, etc.)
// - Communication from SQLite to Redux is done via dispatcher.
// So there's basically still a one way flux: React => SQLite => Redux => React
2017-05-10 19:51:43 +00:00
import { AppRegistry } from 'react-native';
2017-06-24 18:06:28 +00:00
import { Log } from 'lib/log.js'
2017-07-05 20:34:25 +00:00
import { Root } from './root.js';
2017-05-10 19:51:43 +00:00
function main() {
2017-05-11 20:14:01 +00:00
AppRegistry.registerComponent('AwesomeProject', () => Root);
2017-05-23 19:58:12 +00:00
console.ignoredYellowBox = ['Remote debugger'];
2017-05-19 19:12:09 +00:00
Log.info('START ======================================================================================================');
2017-05-12 20:17:23 +00:00
// Note: The final part of the initialization process is in
// AppComponent.componentDidMount(), when the application is ready.
2017-05-10 19:51:43 +00:00
}
export { main }