necolas / react-native-web

Cross-platform React UI packages
https://necolas.github.io/react-native-web
MIT License
21.68k stars 1.79k forks source link

[fix] dont throw if invalid locale #2725

Closed ayroblu closed 1 month ago

ayroblu commented 1 month ago

React native web throws a hard error if the locale is invalid. This is one of the most common errors according to our error logging. This hard error seems unnecessary, so try catch and just assume ltr if not supported locale

codesandbox-ci[bot] commented 1 month ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e6bcade5392b7222134aceda86738dbf5d6948ba:

Sandbox Source
react-native-web-examples Configuration
ayroblu commented 1 month ago

@necolas let me know if this is reasonable