mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
26 lines
1016 B
JavaScript
26 lines
1016 B
JavaScript
// 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
|
|
|
|
// console.disableYellowBox = true
|
|
|
|
import { YellowBox, AppRegistry } from 'react-native';
|
|
YellowBox.ignoreWarnings([
|
|
'Require cycle: node_modules/react-native-',
|
|
'Require cycle: node_modules/rn-fetch-blob',
|
|
]);
|
|
const { Root } = require('./root.js');
|
|
|
|
function main() {
|
|
AppRegistry.registerComponent('Joplin', () => Root);
|
|
console.ignoredYellowBox = ['Remote debugger'];
|
|
// Note: The final part of the initialization process is in
|
|
// AppComponent.componentDidMount(), when the application is ready.
|
|
}
|
|
|
|
module.exports = { main };
|