React Native App crash after dispatch Action
This error appears only at the Customer and the Sales Manager in Germany, but I can’t get this error in Belarus, in Belarus work all correctly, it may be due to something like fbt or i18n packages.
Handler on press button:
const openEditScene = useCallback( () => dispatch(goToTrackedItemScene(trackedItemId)), [trackedItemId, dispatch], );
Action:
export const goToTrackedItemScene = createAction<*, string>( GO_TO_TRACKED_ITEM_SCENE,);export type GoToTrackedItemIdActionType = ActionType< typeof goToTrackedItemScene,>;
Error from Firebase crashlytics:
Fatal Exception: com.facebook.react.common.JavascriptException: Can't find variable: Crashlytics, stack:<unknown>@1532:368touchableHandlePress@793:2602touchableHandlePress@-1_performSideEffectsForTransition@673:9675_performSideEffectsForTransition@-1_receiveSignal@673:8357_receiveSignal@-1touchableHandleResponderRelease@673:5645touchableHandleResponderRelease@-1E@574:1233z@574:1376U@574:1430D@574:1721H@574:2497forEach@-1j@574:2297<unknown>@574:13831Ue@574:81479Me@574:13499Fe@574:13672receiveTouches@574:14441value@517:3518<unknown>@517:822value@517:2772value@517:794value@-1 at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:54) at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:38) at java.lang.reflect.Method.invoke(Method.java) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158) at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java) 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:29) at android.os.Looper.loop(Looper.java:237) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232) at java.lang.Thread.run(Thread.java:919)
package.json:
{"name": "Synergeto","version": "1.0.1","private": true,"scripts": {"prestart": "bash scripts/i18n.sh manifest","upgrade": "react-native upgrade","android": "react-native run-android","ios": "react-native run-ios","start": "react-native start","pretest": "bash scripts/i18n.sh manifest","test": "jest --passWithNoTests","flow": "flow","postinstall": "rm -rf node_modules/react-redux node_modules/react && git checkout -f -- :/node_modules :/mobile/node_modules","make-i18n": "bash scripts/i18n.sh manifest && bash scripts/i18n.sh collect && bash scripts/i18n.sh translate","postversion": "react-native-version --never-amend" },"dependencies": {"@react-native-community/async-storage": "^1.5.1","@react-native-community/geolocation": "^2.0.2","@synergeto/core": "^0.0.1","buffer": "^5.2.1","expo-barcode-scanner": "^5.0.1","expo-image-picker": "^5.0.2","expo-localization": "^5.0.1","expo-location": "^5.0.1","expo-secure-store": "^5.0.1","fbt": "0.14.0","formik": "^1.5.8","instabug-reactnative": "^9.1.1","mime": "^2.4.4","ramda": "^0.26.1","react": "^16.8.6","react-native": "^0.60.3","react-native-app-settings": "^2.0.1","react-native-background-timer": "^2.2.0-alpha.0","react-native-bottom-action-sheet": "prscX/react-native-bottom-action-sheet","react-native-navigation": "^3.0.0-alpha.2","react-native-unimodules": "^0.4.2","react-native-webview": "^6.3.1","react-redux": "^7.1.0","redux": "^4.0.4","redux-actions": "^2.6.5","redux-saga": "^1.0.5","sort-by-distance": "^1.1.0","whatwg-url": "^7.0.0","yup": "^0.27.0" },"devDependencies": {"@babel/core": "^7.5.5","@babel/register": "^7.5.5","@babel/runtime": "^7.5.5","@synergeto/eslint-config": "1.0.0","babel-eslint": "^10.0.2","babel-jest": "^24.8.0","babel-plugin-fbt": "^0.9.1","babel-plugin-fbt-runtime": "^0.9.1","babel-plugin-transform-inline-environment-variables": "^0.4.3","dotenv": "^8.0.0","dotenv-expand": "^5.1.0","enzyme": "^3.10.0","enzyme-adapter-react-16": "^1.14.0","flow-bin": "^0.103.0","jest": "^24.8.0","metro-react-native-babel-preset": "^0.55.0","react-native-version": "^3.1.0" },"workspaces": {"nohoist": ["**/@react-native-community/async-storage","**/@react-native-community/async-storage/**","**/expo-barcode-scanner","**/expo-barcode-scanner/**","**/expo-image-picker","**/expo-image-picker/**","**/expo-localization","**/expo-localization/**","**/expo-location","**/expo-location/**","**/expo-secure-store","**/expo-secure-store/**","**/formik","**/formik/**","**/react-native","**/react-native/**","**/react-native-app-settings","**/react-native-app-settings/**","**/react-native-background-timer","**/react-native-background-timer/**","**/react-native-bottom-action-sheet","**/react-native-bottom-action-sheet/**","**/react-native-navigation","**/react-native-navigation/**","**/react-native-unimodules","**/react-native-unimodules/**","**/react-native-webview","**/react-native-webview/**" ] }}