Closed ahmedoid closed 7 years ago
ScrollView in RTL devices don't work
<View style={[ styles.container, this.props.containerStyle ]}> <ScrollView automaticallyAdjustContentInsets={ false } bounces contentContainerStyle={ [ computedStyles.scrollView ] } style={{ flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row' }} decelerationRate={ 0.9 } horizontal onScrollEndDrag={ this._handleScrollEnd } ref={ c => this.scrollView = c } showsHorizontalScrollIndicator={ false } > { body } </ScrollView> </View>
add this line work perfect in RTL
style={{ flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row' }}
@ahmedoid awesome point! thanks for the help 👍
This has been published in v1.1.2!
ScrollView in RTL devices don't work
add this line work perfect in RTL
style={{ flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row' }}