mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Fixing RTL HorizontalScrolling in Android
Reviewed By: astreet Differential Revision: D5638458 fbshipit-source-id: 08a5070a362eb43e12140cc204172d0950a1b720
This commit is contained in:
committed by
Facebook Github Bot
parent
1c104310fb
commit
36c951d24f
@@ -659,10 +659,11 @@ const ScrollView = createReactClass({
|
||||
} else if (Platform.OS === 'android') {
|
||||
if (this.props.horizontal) {
|
||||
ScrollViewClass = AndroidHorizontalScrollView;
|
||||
ScrollContentContainerViewClass = AndroidHorizontalScrollContentView;
|
||||
} else {
|
||||
ScrollViewClass = AndroidScrollView;
|
||||
ScrollContentContainerViewClass = View;
|
||||
}
|
||||
ScrollContentContainerViewClass = View;
|
||||
}
|
||||
|
||||
invariant(
|
||||
@@ -880,6 +881,7 @@ const styles = StyleSheet.create({
|
||||
|
||||
let nativeOnlyProps,
|
||||
AndroidScrollView,
|
||||
AndroidHorizontalScrollContentView,
|
||||
AndroidHorizontalScrollView,
|
||||
RCTScrollView,
|
||||
RCTScrollContentView;
|
||||
@@ -899,6 +901,9 @@ if (Platform.OS === 'android') {
|
||||
(ScrollView: React.ComponentType<any>),
|
||||
nativeOnlyProps
|
||||
);
|
||||
AndroidHorizontalScrollContentView = requireNativeComponent(
|
||||
'AndroidHorizontalScrollContentView'
|
||||
);
|
||||
} else if (Platform.OS === 'ios') {
|
||||
nativeOnlyProps = {
|
||||
nativeOnly: {
|
||||
|
||||
Reference in New Issue
Block a user