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

[Breaking change] Remove layout.direction

Open yogevbd opened this issue 3 years ago • 1 comments

Breaking change

layout.direction is no longer needed as we can use react-native's I18n to detect the direction.

Examples

Forcing the layout direction:

I18nManager.forceRTL(true);

Syncing the layout direction with the system's direction:

I18nManager.allowRTL(true);

yogevbd avatar Mar 14 '21 11:03 yogevbd

@yogevbd awesome, we might need to mention in docs/changes that calling

I18nManager.allowRTL(true);

should be the first thing before the app starts.

swabbass avatar Apr 12 '21 00:04 swabbass