Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 9.3.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.2 => 0.55.2
Description
When the device locale is an RTL language, using a ScrollView's scrollToEnd() function will scroll to the beginning of the scrollview, rather than the end. Notice in all gifs but the Android RTL one, when I click on blue or white boxes, I am scrolled to the purple box.
| Platform |
LTR |
RTL |
| Android |
 |
 |
| iOS |
 |
 |
Reproducible Demo
Snack available here: https://snack.expo.io/HkdupfeGm
Note that on iOS, the Expo app does not seem to support RTL well. I've added in a call to force RTL, but you may need to refresh the code to see RTL behavior.
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 9.3.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.2 => 0.55.2
Description
When the device locale is an RTL language, using a ScrollView's
scrollToEnd()function will scroll to the beginning of the scrollview, rather than the end. Notice in all gifs but the Android RTL one, when I click on blue or white boxes, I am scrolled to the purple box.Reproducible Demo
Snack available here: https://snack.expo.io/HkdupfeGm
Note that on iOS, the Expo app does not seem to support RTL well. I've added in a call to force RTL, but you may need to refresh the code to see RTL behavior.