From 13dfb6267a16f3430cf609d47b290ab977082300 Mon Sep 17 00:00:00 2001 From: Wenjing Wang Date: Thu, 9 Jun 2016 23:08:05 -0700 Subject: [PATCH] Fix broken image cropper - can not scroll Summary: ImageCropper is broken on iOS. Can not scroll up and down Differential Revision: D3413397 fbshipit-source-id: 75096fc1d5dd14764c0ddd4fd3888a9576c1d1ce --- Libraries/Components/ScrollView/ScrollView.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 52e20aff6..ec2608cea 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -15,7 +15,6 @@ const ColorPropType = require('ColorPropType'); const EdgeInsetsPropType = require('EdgeInsetsPropType'); const Platform = require('Platform'); const PointPropType = require('PointPropType'); -const RCTScrollViewManager = require('NativeModules').ScrollViewManager; const React = require('React'); const ReactNative = require('ReactNative'); const ScrollResponder = require('ScrollResponder'); @@ -469,7 +468,6 @@ const ScrollView = React.createClass({ !this.props.horizontal; const baseStyle = this.props.horizontal ? styles.baseHorizontal : styles.baseVertical; - const props = { ...this.props, alwaysBounceHorizontal, @@ -548,6 +546,7 @@ const ScrollView = React.createClass({ const styles = StyleSheet.create({ baseVertical: { flex: 1, + flexDirection: 'column', }, baseHorizontal: { flex: 1,