1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +02:00

Got app to build again

This commit is contained in:
Laurent Cozic
2020-10-13 17:02:59 +01:00
parent 89263ac742
commit 3b0e3f6f43
8 changed files with 76 additions and 36 deletions

View File

@ -1,3 +1,5 @@
// TODO: NOT USED ANYMORE, BUT COPY CONTENT BELOW TO index.js
// 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.).
@ -8,29 +10,39 @@
// console.disableYellowBox = true
import {YellowBox, AppRegistry} from 'react-native';
YellowBox.ignoreWarnings([
'Require cycle: node_modules/react-native-',
'Require cycle: node_modules/rn-fetch-blob',
'Warning: componentWillReceiveProps has been renamed',
'Warning: componentWillUpdate has been renamed',
'Warning: componentWillMount has been renamed',
]);
const {Root} = require('./root.js');
// import {YellowBox, AppRegistry} from 'react-native';
// YellowBox.ignoreWarnings([
// 'Require cycle: node_modules/react-native-',
// 'Require cycle: node_modules/rn-fetch-blob',
// 'Warning: componentWillReceiveProps has been renamed',
// 'Warning: componentWillUpdate has been renamed',
// 'Warning: componentWillMount has been renamed',
// ]);
// const {Root} = require('./root.js');
// Disable buggy Fast Refresh
// NOTE: not working - can make the app go into an infinite crash/restart loop
// if (__DEV__) {
// const { DevSettings } = NativeModules;
// DevSettings.setHotLoadingEnabled(false);
// DevSettings.setLiveReloadEnabled(false);
// // Disable buggy Fast Refresh
// // NOTE: not working - can make the app go into an infinite crash/restart loop
// // if (__DEV__) {
// // const { DevSettings } = NativeModules;
// // DevSettings.setHotLoadingEnabled(false);
// // DevSettings.setLiveReloadEnabled(false);
// // }
// 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.
// }
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};
module.exports = {main};
// import {AppRegistry} from 'react-native';
// const {Root} = require('./root.js');
// // import App from './App';
// // import {name as appName} from './app.json';
// AppRegistry.registerComponent('Joplin', () => Root);