Closed MehmetKaplan closed 1 year ago
It's because hermes is not enabled
Thanks a lot.
I am giving my question a "thumb down" since I became the guy who did not RTFM. :-)
For the other lazy folks, my case was for Expo SDK 47, where Hermes was not enabled by default for Android. After adding the expo.jsEngine
parameter in the app.json
, everything was OK:
...
"jsEngine": "hermes",
...
PS: Android (emulator), ios (simulator) and web (chrome), all are confirmed. Android and iOS use the Hermes but the web does not.
It's faster too :-). And indeed on the web it uses the browser Intl api's which are a big selling point as they don't add to the bundle sizes anymore with unlimited locale's. Hermes also uses native iOS/Android date api's to implement Intl which is really great, and the bundle sizes won't grow much when you add more languages
First, an atomic example can be found in this snack:
https://snack.expo.dev/@mehmetkaplan/issue-react-native-paper-dates-android-intl
When I do the same in local machine, the error is:
The snack has the error:
Can be related with https://github.com/web-ridge/react-native-paper-dates/issues/37, but I think they are different.