-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
I saw this in the react-native-web 0.18 pre-release necolas/react-native-web#2248
I18nManager is now a mock API included only for compatibility with React Native. The ability to swap between left/right values for RTL writing directions has been removed entirely. See below for new localization APIs.
...and I recall that in a PR I just did I was following some internal convention for handling RTL layouts here in react-native-paper: https://github.com/callstack/react-native-paper/pull/3015/files#diff-abbb75c84e06f0e76a8627a199ea73e45aee12d708f8f839d55603b2151466d9R136-R139
The combination of the two seems worrisome, it appears that if I am understanding the RNW 0.18 release notes correctly and "mock API" means we will get a static answer for I18nManager calls on web platform, then RTL will suffer a regression on web platform here until the new RNW APIs are handled?
If this is a problem, easiest forward-port might be to polyfill it back to old behavior on web platform, losing whatever enhancement drove the change but preserving current behavior. Complicated forward-port would involve understanding the enhancement and adapting behavior here accordingly