react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

I18nManager

Open hosseinmd opened this issue 3 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the issue

I18nManager was removed, but it works in native, a lot of modules working with I18nManager. Remove whole of i18nMaanager is not good approach. This violates the theory of React-Native (Learn once, write anywhere). Moving to start/end is good solution because has performance and can change direction in runtime. For swipe left to right, we could change body direction in I18nManager.

Expected behavior

I think you should integrate I18nManager and useLocaleContext

Steps to reproduce

.

Test case

.

Additional comments

No response

hosseinmd avatar Aug 29 '22 08:08 hosseinmd

In React Native, I18nManager is undocumented and produces highly limited localization that isn't good enough for web apps. We'll have to improve React Native to match React Native for Web. In the meantime on web all you have to do is set the dir prop on an element (eg the root) and use the logical CSS properties and values as covered in the documentation

necolas avatar Aug 29 '22 17:08 necolas