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

Mobile: Fixes #3344: Fixed regression that would cause links in notes to open within app itself

This commit is contained in:
Laurent Cozic
2020-06-08 07:41:04 +01:00
parent e5866e8aa6
commit 0bc10acf02
2 changed files with 12 additions and 8 deletions

View File

@ -8,7 +8,7 @@
// console.disableYellowBox = true
import { YellowBox, AppRegistry, NativeModules } from 'react-native';
import { YellowBox, AppRegistry } from 'react-native';
YellowBox.ignoreWarnings([
'Require cycle: node_modules/react-native-',
'Require cycle: node_modules/rn-fetch-blob',
@ -19,11 +19,12 @@ YellowBox.ignoreWarnings([
const { Root } = require('./root.js');
// Disable buggy Fast Refresh
if (__DEV__) {
const { DevSettings } = NativeModules;
DevSettings.setHotLoadingEnabled(false);
DevSettings.setLiveReloadEnabled(false);
}
// 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);