Skip to content

Instantly share code, notes, and snippets.

@fatgy
Last active August 31, 2018 07:19
Show Gist options
  • Save fatgy/52907ff314adeb0a33562952829bca9d to your computer and use it in GitHub Desktop.
Save fatgy/52907ff314adeb0a33562952829bca9d to your computer and use it in GitHub Desktop.
command line android
adb logcat
adb logcat AndroidRuntime:E *:E
adb shell input keyevent 82
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
// com/reactnativenavigation/NavigationActivity.java
@Override
public void onNewIntent(Intent intent) {
// super.onNewIntent(intent);
getReactGateway().onNewIntent(intent);
}
// com/reactnativenavigation/react/ReactGateway.java
public void onNewIntent(Intent intent) {
host.getReactInstanceManager().onNewIntent(intent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment