Description
The application correctly displays all the alerts dialogs and toast messages in the debugging phase. The moment the build is built all the messages disappear. This only happens for android.
React Native version:
System: OS: macOS 10.15.5 CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz Memory: 267.94 MB / 8.00 GB Shell: 3.2.57 - /bin/bashBinaries: Node: 13.8.0 - /usr/local/bin/node Yarn: 1.22.4 - ~/.yarn/bin/yarn npm: 6.13.7 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchmanSDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1IDEs: Android Studio: 3.6 AI-192.7142.36.36.6392135 Xcode: 11.3.1/11C505 - /usr/bin/xcodebuildnpmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.9 => 0.59.9 npmGlobalPackages: react-native-cli: 2.0.1 react-native: 0.61.5
I attach the package.json to see if there are any known incompatibilities:
{"name": "myapp","version": "0.0.1","private": true,"scripts": {"start": "node node_modules/react-native/local-cli/cli.js start","android": "react-native run-android","test": "jest" },"dependencies": {"@react-native-community/async-storage": "^1.11.0","axios": "^0.18.0","haversine": "^1.1.0","jetifier": "^1.6.5","moment": "^2.22.2","react": "16.8.3","react-native": "0.59.9","react-native-actionsheet": "^2.4.2","react-native-android-location-services-dialog-box": "^2.8.2","react-native-auto-height-image": "^1.1.0","react-native-cached-image": "^1.4.3","react-native-cli": "1.3.0","react-native-fbsdk": "1.0.4","react-native-gesture-handler": "^1.6.0","react-native-global-font": "^1.0.2","react-native-google-places": "3.1.2","react-native-image-crop-picker": "^0.24.1","react-native-image-pan-zoom": "^2.1.10","react-native-image-placeholder": "^1.0.14","react-native-iphone-x-helper": "^1.2.0","react-native-keyboard-manager": "^4.0.13-10","react-native-maps": "0.25.0","react-native-maps-super-cluster": "^1.4.1","react-native-modal-datetime-picker": "^5.1.0","react-native-open-maps": "^0.3.3","react-native-progress": "^3.4.0","react-native-push-notification": "3.1.3","react-native-reanimated": "^1.7.0","react-native-router-flux": "^4.0.6","react-native-screens": "^2.0.0-beta.8","react-native-share": "^1.2.1","react-native-snap-carousel": "^3.7.4","react-native-swiper": "^1.5.13","react-native-vector-icons": "^4.6.0","react-native-view-shot": "^2.5.0","react-redux": "^5.0.7","redux": "^3.7.2","redux-persist": "^4.10.1","redux-persist-transform-filter": "0.0.15","redux-thunk": "^2.2.0" },"devDependencies": {"babel-jest": "23.6.0","jest": "23.6.0","metro-react-native-babel-preset": "0.51.1","react-test-renderer": "16.6.3" },"jest": {"preset": "react-native" },"rnpm": {"assets": ["./src/fonts" ] }}
A simple example of use:
Alert.alert('Example','This is only an example of an AlertDialogs.');
Expected Results:
That alerts are shown in build mode.
Thanks in advance to those who want to help me.