mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-12 08:54:00 +02:00
71efff6827
* Update eslint config * Applied linter to lib * Applied eslint config to CliClient/app * Removed prettier due to https://github.com/prettier/prettier/pull/4765 * First pass on test units * Applied linter config to test units * Applied eslint config to clipper * Applied to plugin dir * Applied to root of ElectronClient * Applied on RN root * Applied on CLI root * Applied on Clipper root * Applied config to tools * test hook * test hook * test hook * Added pre-commit hook * Applied rule no-trailing-spaces * Make sure root packages are installed when installing sub-dir * Added doc
28 lines
1.0 KiB
JavaScript
28 lines
1.0 KiB
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} from 'react-native';
|
|
YellowBox.ignoreWarnings([
|
|
'Require cycle: node_modules/react-native-',
|
|
'Require cycle: node_modules/rn-fetch-blob',
|
|
]);
|
|
|
|
const { AppRegistry } = require('react-native');
|
|
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 };
|