diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index e218be3b4..ce168b1c2 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -251,13 +251,6 @@ var ScrollView = React.createClass({ * @platform ios */ scrollsToTop: PropTypes.bool, - /** - * When true, momentum events will be sent from Android - * This is internal and set automatically by the framework if you have - * onMomentumScrollBegin or onMomentumScrollEnd set on your ScrollView - * @platform android - */ - sendMomentumEvents: PropTypes.bool, /** * When true, shows a horizontal scroll indicator. */ @@ -555,10 +548,12 @@ var styles = StyleSheet.create({ }); if (Platform.OS === 'android') { - var AndroidScrollView = requireNativeComponent('RCTScrollView', ScrollView); + var nativeOnlyProps = { nativeOnly : { 'sendMomentumEvents' : true } }; + var AndroidScrollView = requireNativeComponent('RCTScrollView', ScrollView, nativeOnlyProps); var AndroidHorizontalScrollView = requireNativeComponent( 'AndroidHorizontalScrollView', - ScrollView + ScrollView, + nativeOnlyProps ); } else if (Platform.OS === 'ios') { var RCTScrollView = requireNativeComponent('RCTScrollView', ScrollView);