question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crash in Android after update using expo-updates in bare RN project

See original GitHub issue

HI, thanks for this great project and all the work you put in, really useful and appreciated.

I’m having some trouble getting my implementation of expo-updates working in my bare RN project. This is not necessarily a bug report as it could just be an oversight on my part but after 3 days of googling and attempting to fix this issue myself my last resort is to post here - apologies if that is not the correct course of action.

Issue description

  1. Install RN app on android emulator using yarn react-native run-android --variant=release.
  2. App runs successfully and hook on Updates.addListener reports no update available. Manifest is empty.
  3. Close app on emulator.
  4. Change a JSX text string as a small update and build an OTA update with expo export --public-url <MY_CUSTOM_URL_ON_AWS_S3>.
  5. Upload /dist folder to s3.
  6. Restart app on emulator, hook on Updates.addListener reports an update has been found.
  7. Restart app on emulator once again to view updated code. App crashes and fails to launch. Logcat shows com.facebook.react.common.JavascriptException: Invariant Violation: "<MY_APP_NAME>" has not been registered.
  • Reproduced on actual device aswell, not just on emulator.
  • Self hosting of update code seems to work correctly as update is detected and update from manifest is populated in Updates.addListener response.
  • I’ve confirmed that the js is being served from s3 with content-type: application/javascript using curl

Environment

  • Bare react-native project
  • yarn workspaces project written in typescript with other code sitting alongside app all under packages directory
  Expo CLI 3.22.3 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 3.0.2 - /usr/local/bin/fish
    Binaries:
      Node: 14.5.0 - ~/.nvm/versions/node/v14.5.0/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.7 - ~/.nvm/versions/node/v14.5.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Xcode: 11.6/11E708 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^38.0.0 => 38.0.8 
      react: 16.13.1 => 16.13.1 
      react-native: 0.62.2 => 0.62.2 
    npmGlobalPackages:
      expo-cli: 3.22.3
Expand for package.json package versions
  "dependencies": {
    "@apollo/react-hooks": "^3.1.5",
    "@react-native-community/async-storage": "~1.11.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-community/toolbar-android": "^0.1.0-rc.2",
    "@react-navigation/drawer": "^5.8.2",
    "@react-navigation/native": "^5.5.1",
    "@react-navigation/stack": "^5.5.1",
    "apollo-boost": "^0.4.9",
    "aws-sdk": "^2.709.0",
    "expo": "^38.0.0",
    "expo-updates": "~0.2.8",
    "graphql": "^15.1.0",
    "graphql-tag": "^2.10.3",
    "react": "16.13.1",
    "react-native": "0.62.2",
    "react-native-dotenv": "^0.2.0",
    "react-native-gesture-handler": "~1.6.0",
    "react-native-nfc-manager": "^2.1.9",
    "react-native-paper": "4.0.0-alpha.1",
    "react-native-push-notification": "^3.5.2",
    "react-native-reanimated": "~1.9.0",
    "react-native-safe-area-context": "~3.0.7",
    "react-native-screens": "~2.9.0",
    "react-native-step-indicator": "^1.0.3",
    "react-native-unimodules": "~0.10.1",
    "react-native-vector-icons": "^7.0.0",
    "recoil": "github:eveningkid/Recoil#react-native"
  },
  "devDependencies": {
    "@babel/core": "^7.6.2",
    "@babel/runtime": "^7.6.2",
    "@react-native-community/eslint-config": "^1.0.0",
    "@types/jest": "^24.0.24",
    "@types/react-native": "~0.62.13",
    "@types/react-test-renderer": "16.9.2",
    "@types/recoil": "^0.0.1",
    "@typescript-eslint/eslint-plugin": "^2.27.0",
    "@typescript-eslint/parser": "^2.27.0",
    "babel-jest": "^24.9.0",
    "eslint": "^6.5.1",
    "expo-yarn-workspaces": "^1.2.1",
    "jest": "^24.9.0",
    "metro-react-native-babel-preset": "^0.58.0",
    "prettier": "^2.0.4",
    "react-test-renderer": "16.11.0",
    "typescript": "~3.9.5"
  },

LOGCAT output

Expand for logcat output
2020-07-27 19:56:07.681 2072-2380/system_process I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.<MY_APP_NAME>/.MainActivity bnds=[2038,447][2544,702]} from uid 10092
2020-07-27 19:56:07.689 2072-2072/system_process W/ActivityManager: Unable to start service Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } U=0: not found
2020-07-27 19:56:07.689 2072-2072/system_process W/RemoteAppPredictionService: could not bind to Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } using flags 67108865
2020-07-27 19:56:07.692 2072-2990/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:07.692 2072-2990/system_process I/chatty: uid=1000(system) Binder:2072_E identical 18 lines
2020-07-27 19:56:07.692 2072-2990/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:07.696 2072-2095/system_process E/system_server: Invalid ID 0x00000000.
2020-07-27 19:56:07.718 1795-1963/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 18436096
2020-07-27 19:56:07.755 1779-1779/? D/Zygote: Forked child process 7339
2020-07-27 19:56:07.760 2072-2101/system_process I/ActivityManager: Start proc 7339:com.<MY_APP_NAME>/u0a142 for activity {com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity}
2020-07-27 19:56:07.776 7339-7339/? W/yhiveiokioskap: Unexpected CPU variant for X86 using defaults: x86
2020-07-27 19:56:07.803 2072-2990/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:07.805 2072-2990/system_process I/chatty: uid=1000(system) Binder:2072_E identical 28 lines
2020-07-27 19:56:07.805 2072-2990/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:07.873 7339-7339/com.<MY_APP_NAME> I/FirebaseInitProvider: FirebaseApp initialization successful
2020-07-27 19:56:07.874 7339-7370/com.<MY_APP_NAME> I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:12 and remote module com.google.android.gms.measurement.dynamite:0
2020-07-27 19:56:07.874 7339-7370/com.<MY_APP_NAME> I/DynamiteModule: Selected local version of com.google.android.gms.measurement.dynamite
2020-07-27 19:56:07.877 7339-7370/com.<MY_APP_NAME> W/yhiveiokioskap: Unsupported class loader
2020-07-27 19:56:07.878 7339-7339/com.<MY_APP_NAME> D/SoLoader: init start
2020-07-27 19:56:07.878 7339-7339/com.<MY_APP_NAME> D/SoLoader: adding system library source: /vendor/lib
2020-07-27 19:56:07.878 7339-7339/com.<MY_APP_NAME> D/SoLoader: adding system library source: /system/lib
2020-07-27 19:56:07.880 7339-7339/com.<MY_APP_NAME> D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.<MY_APP_NAME>-F3Bsh562RaztW_17OpaV2w==/lib/x86 flags = 0]
2020-07-27 19:56:07.880 7339-7339/com.<MY_APP_NAME> D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/com.<MY_APP_NAME>/lib-main flags = 1]
2020-07-27 19:56:07.880 7339-7339/com.<MY_APP_NAME> D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
2020-07-27 19:56:07.880 7339-7339/com.<MY_APP_NAME> D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2]
2020-07-27 19:56:07.880 7339-7339/com.<MY_APP_NAME> D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.<MY_APP_NAME>-F3Bsh562RaztW_17OpaV2w==/lib/x86 flags = 0]
2020-07-27 19:56:07.880 7339-7339/com.<MY_APP_NAME> D/SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.<MY_APP_NAME>/lib-main flags = 1]
2020-07-27 19:56:07.882 7339-7339/com.<MY_APP_NAME> V/fb-UnpackingSoSource: locked dso store /data/user/0/com.<MY_APP_NAME>/lib-main
2020-07-27 19:56:07.883 7339-7339/com.<MY_APP_NAME> I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.<MY_APP_NAME>/lib-main
2020-07-27 19:56:07.883 7339-7339/com.<MY_APP_NAME> V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.<MY_APP_NAME>/lib-main
2020-07-27 19:56:07.883 7339-7339/com.<MY_APP_NAME> D/SoLoader: init finish: 4 SO sources prepared
2020-07-27 19:56:07.883 7339-7339/com.<MY_APP_NAME> D/SoLoader: init exiting
2020-07-27 19:56:07.885 2072-2095/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:07.886 2072-2095/system_process I/chatty: uid=1000(system) android.anim identical 18 lines
2020-07-27 19:56:07.886 2072-2095/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:07.898 1795-1963/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 18436096
2020-07-27 19:56:07.903 7339-7339/com.<MY_APP_NAME> D/SoLoader: init exiting
2020-07-27 19:56:07.904 7339-7339/com.<MY_APP_NAME> D/SoLoader: About to load: libjscexecutor.so
2020-07-27 19:56:07.904 7339-7339/com.<MY_APP_NAME> D/SoLoader: libjscexecutor.so not found on /data/data/com.<MY_APP_NAME>/lib-main
2020-07-27 19:56:07.904 7339-7339/com.<MY_APP_NAME> D/SoLoader: libjscexecutor.so found on /data/app/com.<MY_APP_NAME>-F3Bsh562RaztW_17OpaV2w==/lib/x86
2020-07-27 19:56:07.904 7339-7339/com.<MY_APP_NAME> D/SoLoader: Not resolving dependencies for libjscexecutor.so
2020-07-27 19:56:07.912 7339-7372/com.<MY_APP_NAME> D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-07-27 19:56:07.980 7339-7339/com.<MY_APP_NAME> D/JavaScriptCore.Version: 245459.0.0
2020-07-27 19:56:07.984 1796-1940/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:07.987 7339-7339/com.<MY_APP_NAME> D/SoLoader: Loaded: libjscexecutor.so
2020-07-27 19:56:07.987 7339-7339/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.ctor()
2020-07-27 19:56:07.987 7339-7339/com.<MY_APP_NAME> D/SoLoader: init exiting
2020-07-27 19:56:07.990 1778-7374/? E/ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
2020-07-27 19:56:07.999 1796-1940/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.008 1810-2118/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
2020-07-27 19:56:08.009 1810-2064/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
2020-07-27 19:56:07.999 7339-7339/com.<MY_APP_NAME> W/RenderThread: type=1400 audit(0.0:31): avc: denied { write } for name="property_service" dev="tmpfs" ino=795 scontext=u:r:untrusted_app_27:s0:c142,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 app=com.<MY_APP_NAME>
2020-07-27 19:56:08.011 7339-7377/com.<MY_APP_NAME> D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
2020-07-27 19:56:08.014 7339-7377/com.<MY_APP_NAME> W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
2020-07-27 19:56:08.017 1796-1940/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.035 1796-1940/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.041 1810-1810/? E/RenderEngine: GL error 0x0501
2020-07-27 19:56:08.054 1796-1940/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.072 1796-1940/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.086 7339-7339/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.createReactContextInBackground()
2020-07-27 19:56:08.086 7339-7339/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
2020-07-27 19:56:08.086 7339-7339/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.recreateReactContextInBackgroundFromBundleLoader()
2020-07-27 19:56:08.086 7339-7339/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.recreateReactContextInBackground()
2020-07-27 19:56:08.086 7339-7339/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
2020-07-27 19:56:08.089 1796-1940/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.108 1796-1940/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.121 7339-7377/com.<MY_APP_NAME> D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
2020-07-27 19:56:08.124 7339-7378/com.<MY_APP_NAME> D/SoLoader: About to load: libreactnativejni.so
2020-07-27 19:56:08.130 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.132 7339-7378/com.<MY_APP_NAME> D/SoLoader: libreactnativejni.so not found on /data/data/com.<MY_APP_NAME>/lib-main
2020-07-27 19:56:08.133 7339-7378/com.<MY_APP_NAME> D/SoLoader: libreactnativejni.so found on /data/app/com.<MY_APP_NAME>-F3Bsh562RaztW_17OpaV2w==/lib/x86
2020-07-27 19:56:08.133 7339-7378/com.<MY_APP_NAME> D/SoLoader: Not resolving dependencies for libreactnativejni.so
2020-07-27 19:56:08.146 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.147 7339-7377/com.<MY_APP_NAME> D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
2020-07-27 19:56:08.155 2242-2516/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xde81a780: ver 3 0 (tinfo 0xde80fca0)
2020-07-27 19:56:08.155 7339-7378/com.<MY_APP_NAME> D/SoLoader: Loaded: libreactnativejni.so
2020-07-27 19:56:08.156 7339-7378/com.<MY_APP_NAME> D/SoLoader: About to load: libfbjni.so
2020-07-27 19:56:08.157 7339-7378/com.<MY_APP_NAME> D/SoLoader: libfbjni.so not found on /data/data/com.<MY_APP_NAME>/lib-main
2020-07-27 19:56:08.157 7339-7378/com.<MY_APP_NAME> D/SoLoader: libfbjni.so found on /data/app/com.<MY_APP_NAME>-F3Bsh562RaztW_17OpaV2w==/lib/x86
2020-07-27 19:56:08.157 7339-7378/com.<MY_APP_NAME> D/SoLoader: Not resolving dependencies for libfbjni.so
2020-07-27 19:56:08.162 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.166 7339-7378/com.<MY_APP_NAME> D/SoLoader: Loaded: libfbjni.so
2020-07-27 19:56:08.167 7339-7378/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.createReactContext()
2020-07-27 19:56:08.180 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.198 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.202 2242-2516/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xde81a780: ver 3 0 (tinfo 0xde80fca0)
2020-07-27 19:56:08.209 7339-7378/com.<MY_APP_NAME> D/ReactNativeNfcManager: NfcManager created
2020-07-27 19:56:08.214 7339-7377/com.<MY_APP_NAME> D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
2020-07-27 19:56:08.215 2242-2516/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xde81a780: ver 3 0 (tinfo 0xde80fca0)
2020-07-27 19:56:08.218 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.232 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.245 2242-2516/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xde81a780: ver 3 0 (tinfo 0xde80fca0)
2020-07-27 19:56:08.253 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.259 2242-2516/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xde81a780: ver 3 0 (tinfo 0xde80fca0)
2020-07-27 19:56:08.264 7339-7378/com.<MY_APP_NAME> D/ReactNative: Initializing React Xplat Bridge.
2020-07-27 19:56:08.271 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.275 2242-2516/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xde81a780: ver 3 0 (tinfo 0xde80fca0)
2020-07-27 19:56:08.286 7339-7378/com.<MY_APP_NAME> D/ReactNative: Initializing React Xplat Bridge before initializeBridge
2020-07-27 19:56:08.289 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.294 2242-2516/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xde81a780: ver 3 0 (tinfo 0xde80fca0)
2020-07-27 19:56:08.303 7339-7378/com.<MY_APP_NAME> D/ReactNative: Initializing React Xplat Bridge after initializeBridge
2020-07-27 19:56:08.303 7339-7378/com.<MY_APP_NAME> D/ReactNative: CatalystInstanceImpl.runJSBundle()
2020-07-27 19:56:08.305 1796-1796/? W/EmuHWC2: validate: layer 81 CompositionType 1, fallback
2020-07-27 19:56:08.306 2242-2516/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xde81a780: ver 3 0 (tinfo 0xde80fca0)
2020-07-27 19:56:08.358 7339-7384/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.setupReactContext()
2020-07-27 19:56:08.358 7339-7384/com.<MY_APP_NAME> D/ReactNative: CatalystInstanceImpl.initialize()
2020-07-27 19:56:08.359 7339-7384/com.<MY_APP_NAME> D/ReactNativeNfcManager: onResume
2020-07-27 19:56:08.360 7339-7384/com.<MY_APP_NAME> D/ReactNative: ReactInstanceManager.attachRootViewToInstance()
2020-07-27 19:56:08.379 1810-1810/? E/Layer: [Surface(name=AppWindowToken{a5155a5 token=Token{269e79c ActivityRecord{f983b0f u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t50}}})/@0x1f05ccd - animation-leash#0] No local sync point found
2020-07-27 19:56:08.379 1810-1810/? E/Layer: [Surface(name=AppWindowToken{a5155a5 token=Token{269e79c ActivityRecord{f983b0f u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t50}}})/@0x1f05ccd - animation-leash#0] No local sync point found
2020-07-27 19:56:08.379 1810-1810/? E/Layer: [Surface(name=AppWindowToken{6fc78c token=Token{eae4bf ActivityRecord{9263ade u0 com.<MY_APP_NAME>/.MainActivity t61}}})/@0x45178e - animation-leash#0] No local sync point found
2020-07-27 19:56:08.379 1810-1810/? E/Layer: [Surface(name=AppWindowToken{6fc78c token=Token{eae4bf ActivityRecord{9263ade u0 com.<MY_APP_NAME>/.MainActivity t61}}})/@0x45178e - animation-leash#0] No local sync point found
2020-07-27 19:56:08.386 2888-3319/com.google.android.googlequicksearchbox D/EGL_emulation: eglMakeCurrent: 0xde81b860: ver 3 0 (tinfo 0xde80fcf0)
2020-07-27 19:56:08.387 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager
2020-07-27 19:56:08.388 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
2020-07-27 19:56:08.391 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager
2020-07-27 19:56:08.391 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
2020-07-27 19:56:08.397 2474-3013/com.google.android.apps.nexuslauncher D/EGL_emulation: eglMakeCurrent: 0xe6812000: ver 3 0 (tinfo 0xe682f550)
2020-07-27 19:56:08.400 7339-7375/com.<MY_APP_NAME> D/HostConnection: HostConnection::get() New Host Connection established 0xde84c690, tid 7375
2020-07-27 19:56:08.402 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager
2020-07-27 19:56:08.402 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
2020-07-27 19:56:08.403 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.checkbox.ReactCheckBoxManager
2020-07-27 19:56:08.406 7339-7375/com.<MY_APP_NAME> D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0 
2020-07-27 19:56:08.411 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
2020-07-27 19:56:08.417 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
2020-07-27 19:56:08.423 7339-7375/com.<MY_APP_NAME> W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2020-07-27 19:56:08.425 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
2020-07-27 19:56:08.433 7339-7375/com.<MY_APP_NAME> D/EGL_emulation: eglCreateContext: 0xde81a7e0: maj 3 min 0 rcv 3
2020-07-27 19:56:08.434 7339-7375/com.<MY_APP_NAME> D/EGL_emulation: eglMakeCurrent: 0xde81a7e0: ver 3 0 (tinfo 0xde80f9c0)
2020-07-27 19:56:08.436 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
2020-07-27 19:56:08.437 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
2020-07-27 19:56:08.439 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
2020-07-27 19:56:08.443 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
2020-07-27 19:56:08.444 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
2020-07-27 19:56:08.444 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
2020-07-27 19:56:08.445 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
2020-07-27 19:56:08.446 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
2020-07-27 19:56:08.448 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
2020-07-27 19:56:08.455 1795-1963/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 18436096
2020-07-27 19:56:08.456 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
2020-07-27 19:56:08.456 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
2020-07-27 19:56:08.459 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
2020-07-27 19:56:08.459 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
2020-07-27 19:56:08.460 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
2020-07-27 19:56:08.460 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
2020-07-27 19:56:08.461 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
2020-07-27 19:56:08.463 1682-1682/? I/hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.mapper@3.0::IMapper/default in either framework or device manifest.
2020-07-27 19:56:08.463 7339-7375/com.<MY_APP_NAME> W/Gralloc3: mapper 3.x is not supported
2020-07-27 19:56:08.464 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
2020-07-27 19:56:08.472 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
2020-07-27 19:56:08.473 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
2020-07-27 19:56:08.473 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextShadowNode
2020-07-27 19:56:08.475 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
2020-07-27 19:56:08.479 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
2020-07-27 19:56:08.485 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
2020-07-27 19:56:08.490 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
2020-07-27 19:56:08.492 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
2020-07-27 19:56:08.493 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
2020-07-27 19:56:08.505 7339-7375/com.<MY_APP_NAME> D/HostConnection: createUnique: call
2020-07-27 19:56:08.514 7339-7375/com.<MY_APP_NAME> D/HostConnection: HostConnection::get() New Host Connection established 0xde84c9b0, tid 7375
2020-07-27 19:56:08.514 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
2020-07-27 19:56:08.515 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
2020-07-27 19:56:08.515 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class org.reactnative.maskedview.RNCMaskedViewManager
2020-07-27 19:56:08.515 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.toolbarandroid.ReactToolbarManager
2020-07-27 19:56:08.531 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerRootViewManager
2020-07-27 19:56:08.535 7339-7375/com.<MY_APP_NAME> D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0 
2020-07-27 19:56:08.543 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerButtonViewManager
2020-07-27 19:56:08.546 7339-7375/com.<MY_APP_NAME> D/eglCodecCommon: allocate: Ask for block of size 0x1000
2020-07-27 19:56:08.546 7339-7375/com.<MY_APP_NAME> D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3ffff2000 size 0x2000
2020-07-27 19:56:08.553 1795-1963/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 18436096
2020-07-27 19:56:08.555 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaProviderManager
2020-07-27 19:56:08.555 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaViewManager
2020-07-27 19:56:08.556 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaViewShadowNode
2020-07-27 19:56:08.556 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenContainerViewManager
2020-07-27 19:56:08.557 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenViewManager
2020-07-27 19:56:08.559 7339-7375/com.<MY_APP_NAME> D/EGL_emulation: eglMakeCurrent: 0xde81a7e0: ver 3 0 (tinfo 0xde80f9c0)
2020-07-27 19:56:08.560 1795-1795/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 18436096
2020-07-27 19:56:08.580 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackViewManager
2020-07-27 19:56:08.586 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderConfigViewManager
2020-07-27 19:56:08.592 7339-7371/com.<MY_APP_NAME> I/FA: App measurement initialized, version: 25001
2020-07-27 19:56:08.592 7339-7371/com.<MY_APP_NAME> I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2020-07-27 19:56:08.592 7339-7371/com.<MY_APP_NAME> I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.<MY_APP_NAME>
2020-07-27 19:56:08.597 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderSubviewManager
2020-07-27 19:56:08.598 7339-7384/com.<MY_APP_NAME> W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class org.unimodules.adapters.react.views.SimpleViewManagerAdapter
2020-07-27 19:56:08.599 7339-7384/com.<MY_APP_NAME> D/SoLoader: About to load: libyoga.so
2020-07-27 19:56:08.600 7339-7384/com.<MY_APP_NAME> D/SoLoader: libyoga.so not found on /data/data/com.<MY_APP_NAME>/lib-main
2020-07-27 19:56:08.600 7339-7384/com.<MY_APP_NAME> D/SoLoader: libyoga.so found on /data/app/com.<MY_APP_NAME>-F3Bsh562RaztW_17OpaV2w==/lib/x86
2020-07-27 19:56:08.600 7339-7384/com.<MY_APP_NAME> D/SoLoader: Not resolving dependencies for libyoga.so
2020-07-27 19:56:08.615 7339-7384/com.<MY_APP_NAME> D/SoLoader: Loaded: libyoga.so
2020-07-27 19:56:08.660 2072-2099/system_process I/ActivityTaskManager: Displayed com.<MY_APP_NAME>/.MainActivity: +961ms
2020-07-27 19:56:08.672 7339-7384/com.<MY_APP_NAME> D/SoLoader: init exiting
2020-07-27 19:56:08.710 2888-7217/com.google.android.googlequicksearchbox I/PBSessionCacheImpl: Deleted sessionId[153397715089] from persistence.
2020-07-27 19:56:08.713 2888-3249/com.google.android.googlequicksearchbox W/SearchServiceCore: Abort, client detached.
2020-07-27 19:56:08.724 7339-7371/com.<MY_APP_NAME> I/FA: Tag Manager is not found and thus will not be used
2020-07-27 19:56:08.920 7339-7339/com.<MY_APP_NAME> E/unknown:ReactNative: Unable to launch logbox because react was unable to create the root view
2020-07-27 19:56:09.388 7339-7383/com.<MY_APP_NAME> D/SoLoader: About to load: libreactnativeblob.so
2020-07-27 19:56:09.388 7339-7383/com.<MY_APP_NAME> D/SoLoader: libreactnativeblob.so not found on /data/data/com.<MY_APP_NAME>/lib-main
2020-07-27 19:56:09.388 7339-7383/com.<MY_APP_NAME> D/SoLoader: libreactnativeblob.so found on /data/app/com.<MY_APP_NAME>-F3Bsh562RaztW_17OpaV2w==/lib/x86
2020-07-27 19:56:09.388 7339-7383/com.<MY_APP_NAME> D/SoLoader: Not resolving dependencies for libreactnativeblob.so
2020-07-27 19:56:09.389 7339-7383/com.<MY_APP_NAME> D/SoLoader: Loaded: libreactnativeblob.so
2020-07-27 19:56:09.403 7339-7383/com.<MY_APP_NAME> I/ReactNativeJS: Running "<MY_APP_NAME>" with {"rootTag":1}
2020-07-27 19:56:09.405 7339-7383/com.<MY_APP_NAME> E/ReactNativeJS: Invariant Violation: "<MY_APP_NAME>" has not been registered. This can happen if:
    * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
    * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
    
    --------- beginning of crash
2020-07-27 19:56:09.411 7339-7384/com.<MY_APP_NAME> E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
    Process: com.<MY_APP_NAME>, PID: 7339
    com.facebook.react.common.JavascriptException: Invariant Violation: "<MY_APP_NAME>" has not been registered. This can happen if:
    * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
    * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., stack:
    exports@12:286
    runApplication@321:1983
    value@28:3544
    <unknown>@28:840
    value@28:2798
    value@28:812
    value@-1
    
        at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:79)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
        at android.os.Looper.loop(Looper.java:214)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
        at java.lang.Thread.run(Thread.java:919)
2020-07-27 19:56:09.415 2072-7400/system_process I/DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
2020-07-27 19:56:09.415 2072-2380/system_process W/ActivityTaskManager:   Force finishing activity com.<MY_APP_NAME>/.MainActivity
2020-07-27 19:56:09.417 2072-2380/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:09.418 2072-2380/system_process I/chatty: uid=1000(system) Binder:2072_5 identical 8 lines
2020-07-27 19:56:09.418 2072-2380/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:09.420 7339-7384/com.<MY_APP_NAME> I/Process: Sending signal. PID: 7339 SIG: 9
2020-07-27 19:56:09.421 2072-2100/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
2020-07-27 19:56:09.421 2072-2100/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2020-07-27 19:56:09.468 2072-2191/system_process W/InputDispatcher: channel 'a9f6eb4 com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2020-07-27 19:56:09.468 2072-2191/system_process E/InputDispatcher: channel 'a9f6eb4 com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-07-27 19:56:09.468 2072-2191/system_process W/InputDispatcher: channel 'c9ae6f2 com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2020-07-27 19:56:09.468 2072-2191/system_process E/InputDispatcher: channel 'c9ae6f2 com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-07-27 19:56:09.469 1779-1779/? I/Zygote: Process 7339 exited due to signal 9 (Killed)
2020-07-27 19:56:09.471 2072-2990/system_process I/WindowManager: WIN DEATH: Window{c9ae6f2 u0 com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity}
2020-07-27 19:56:09.471 2072-2990/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel 'c9ae6f2 com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity (server)'
2020-07-27 19:56:09.479 2072-4008/system_process I/ActivityManager: Process com.<MY_APP_NAME> (pid 7339) has died: vis+99 TOP 
2020-07-27 19:56:09.480 2072-2102/system_process I/libprocessgroup: Successfully killed process cgroup uid 10142 pid 7339 in 0ms
2020-07-27 19:56:09.480 2072-4005/system_process I/WindowManager: WIN DEATH: Window{a9f6eb4 u0 com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity}
2020-07-27 19:56:09.481 2072-4005/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel 'a9f6eb4 com.<MY_APP_NAME>/com.<MY_APP_NAME>.MainActivity (server)'
2020-07-27 19:56:09.486 2072-4008/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:09.491 2072-2094/system_process W/ActivityManager: setHasOverlayUi called on unknown pid: 7339
2020-07-27 19:56:09.489 2072-4008/system_process I/chatty: uid=1000(system) Binder:2072_15 identical 38 lines
2020-07-27 19:56:09.489 2072-4008/system_process W/InputReader: Device has associated, but no associated display id.
2020-07-27 19:56:09.504 1795-1795/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 18436096
2020-07-27 19:56:09.507 2072-2072/system_process W/ActivityManager: Unable to start service Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } U=0: not found
2020-07-27 19:56:09.508 2072-2072/system_process W/RemoteAppPredictionService: could not bind to Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } using flags 67108865

Installation instructions followed

  • I followed the installations instructions for a bare project from this page: https://docs.expo.io/bare/installing-updates/
  • I’ve also attempted running expo upgrade and expo doctor
  • I’ve attempted nuking and reinstalling node_modules
  • I’ve reviewed the install instructions (Android only) to see if I missed anything and I don’t think that I did.
  • expo doctor reports Didn't find any issues with your project!

Any help with the above would be greatly appreciated as I’m now completely stumped.

Thanks in advance,

Chris

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
azesmwaycommented, Jan 12, 2021

@chrisfinch Hi. I seem to have been able to defeat the update problem. I use expo-yarn-workspaces. Сreated the project with - npx create-react-native-app -t with-yarn-workspaces in apps change in package.json “main”: “generated/AppEntry.js”, -> “main”: “index”,

index.js for iOS/Android:

import { registerRootComponent } from 'expo';
...
registerRootComponent(App);

index.web.js for web:

import 'expo/build/Expo.fx';
import { activateKeepAwake } from 'expo-keep-awake';
import registerRootComponent from 'expo/build/launch/registerRootComponent';
...
if (__DEV__) {
  activateKeepAwake();
}

registerRootComponent(App);
2reactions
mclarkedevcommented, Feb 11, 2021

I experienced this crash in Android and iOS due to the incorrect index.js code @chrisfinch described above. However, the real culprit was on the native side of the bridges, where I had our appName hardcoded in.

Edit: I just attempted hardcoding the appName string in my source code but unfortunately that did not work and the app still crashes on launch (the ‘main’ string also still appears in the bundle output…)

In order to use expo-updates in bare (from what I can tell) you cannot reference anything but “main” in both your AppRegistery appKey and native bridges:

MainActivity.java - only use “main”

...
    protected String getMainComponentName() {
        return "main";
    }
...

AppDelegate.m - only use “main”

...
- (RCTBridge *)initializeReactNativeApp
{
  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:self.launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil];
...

The issue, for me, was the stale docs (https://docs.expo.io/bare/installing-updates/#configuration-for-ios) which reference a “MyApp” string.

The bare docs should:

  1. Be up to date and have consolidated links
  2. Reference the version of Expo SDK and expo-updates package that the native code is coupled with
  3. Comment on the native codes dependencies (such as react’s appKey)
  4. Link to a repo with expo-updates bare (I had to update my expo CLI to init the latest native code with assets and local manifest working)

I’m happy to help contribute in pr form.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error recovery - Expo Documentation
Apps using expo -updates can take advantage of built-in error recovery behavior as an extra safeguard against accidentally publishing broken updates.
Read more >
React Native - Sentry Documentation
Features: Automatic Native Crash Error Tracking (using both sentry-cocoa & sentry-android ); Offline storage of events; Events enriched with device data ...
Read more >
React Native Crash Course | Build a Complete App - YouTube
In this in-depth React Native tutorial, you'll learn React Native from the ground up! React Native is a library building up on React.js, ......
Read more >
React Native Firebase
Welcome to React Native Firebase! To get started, you must first setup a Firebase project and install the "app" module.
Read more >
Newest 'expo-updates' Questions - Stack Overflow
Versioning of Android React Native Apps with expo-updates ... Expo update: reloadAsync crashes app in release build. I want to restart my react...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found