2017-05-12 22:23:54 +02: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
|
|
|
|
|
2018-04-30 18:38:19 +02:00
|
|
|
|
|
|
|
// To disable warnings internal to React Native for componentWillMount and
|
|
|
|
// componentWillReceiveProps. Should be fixed at some point and at that
|
|
|
|
// time this code could be removed.
|
|
|
|
// https://github.com/facebook/react-native/issues/18165#issuecomment-369907978
|
2018-10-02 21:02:38 +02:00
|
|
|
// require("ReactFeatureFlags").warnAboutDeprecatedLifecycles = false;
|
2018-04-30 18:38:19 +02:00
|
|
|
|
|
|
|
|
2018-03-09 22:59:12 +02:00
|
|
|
const { AppRegistry } = require('react-native');
|
|
|
|
const { Root } = require('./root.js');
|
2017-05-10 21:51:43 +02:00
|
|
|
|
|
|
|
function main() {
|
2018-03-09 22:59:12 +02:00
|
|
|
AppRegistry.registerComponent('Joplin', () => Root);
|
|
|
|
console.ignoredYellowBox = ['Remote debugger'];
|
2017-05-12 22:17:23 +02:00
|
|
|
// Note: The final part of the initialization process is in
|
|
|
|
// AppComponent.componentDidMount(), when the application is ready.
|
2017-05-10 21:51:43 +02:00
|
|
|
}
|
|
|
|
|
2018-03-09 22:59:12 +02:00
|
|
|
module.exports = { main };
|