kanzitelli / expo-starter

🦥 Expo Starter - Powered by Expo SDK, Navio (React Navigation), RN UI lib, MMKV, Mobx, Reanimated 2, Dark Mode, Localization, and much more.
https://starters.dev
403 stars 54 forks source link

Possible Unhandled Promise Rejection (id:0) #24

Closed vitorcalvi closed 2 years ago

vitorcalvi commented 2 years ago

When try to change the UI > Language > Sysytem ----> English in Expo run:ios -d (Device Xxxx) It doesn't work, just in IOS Simulator

[Unhandled promise rejection: Error: You cannot use the Updates module in development mode in a production app. To test manual updates, make a release build with npm run ios --configuration Release or npm run android --variant Release.] at http://192.168.1.13:8081/index.bundle?platform=ios&dev=true&hot=false&strict=false&minify=false:102793:321 in _createSuperInternal at node_modules/expo-modules-core/build/errors/CodedError.js:10:8 in constructor at http://192.168.1.13:8081/index.bundle?platform=ios&dev=true&hot=false&strict=false&minify=false:233273:49 in reloadAsync$ at node_modules/expo-updates/build/Updates.js:88:7 in reloadAsync at src/services/navigation/index.ts:40:12 in Nav#restart at src/services/navigation/index.ts:40:12 in Nav#restart at src/stores/ui.ts:39:9 in UIStore#setLanguage at node_modules/mobx/dist/mobx.esm.js:1255:11 in executeAction at node_modules/mobx/dist/mobx.esm.js:1239:24 in res at src/screens/settings.tsx:51:53 in at node_modules/react-native-ui-lib/src/components/actionSheet/index.js:125:4 in ActionSheet#onOptionPress

kanzitelli commented 2 years ago

@vitorcalvi i believe it’s related to reloadAsync method from expo-updates module that is not working on simulator. not 100% sure as didn’t test it for a long time, but looking at the error text tells me that