Clean up dead code in ScrollView
Summary: I see dead code Reviewed By: bestander Differential Revision: D3092668 fb-gh-sync-id: d80a0267aafd856b63e1d2ff1ae8b8e9f6deb8ce shipit-source-id: d80a0267aafd856b63e1d2ff1ae8b8e9f6deb8ce
This commit is contained in:
parent
a72f45bb61
commit
ad41a0b326
|
@ -17,20 +17,16 @@ var PointPropType = require('PointPropType');
|
||||||
var RCTScrollView = require('NativeModules').UIManager.RCTScrollView;
|
var RCTScrollView = require('NativeModules').UIManager.RCTScrollView;
|
||||||
var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
|
var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
|
||||||
var React = require('React');
|
var React = require('React');
|
||||||
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
|
||||||
var ScrollResponder = require('ScrollResponder');
|
var ScrollResponder = require('ScrollResponder');
|
||||||
var StyleSheet = require('StyleSheet');
|
var StyleSheet = require('StyleSheet');
|
||||||
var StyleSheetPropType = require('StyleSheetPropType');
|
var StyleSheetPropType = require('StyleSheetPropType');
|
||||||
var View = require('View');
|
var View = require('View');
|
||||||
var ViewStylePropTypes = require('ViewStylePropTypes');
|
var ViewStylePropTypes = require('ViewStylePropTypes');
|
||||||
|
|
||||||
var deepDiffer = require('deepDiffer');
|
|
||||||
var deprecatedPropType = require('deprecatedPropType');
|
var deprecatedPropType = require('deprecatedPropType');
|
||||||
var dismissKeyboard = require('dismissKeyboard');
|
var dismissKeyboard = require('dismissKeyboard');
|
||||||
var flattenStyle = require('flattenStyle');
|
var flattenStyle = require('flattenStyle');
|
||||||
var insetsDiffer = require('insetsDiffer');
|
|
||||||
var invariant = require('fbjs/lib/invariant');
|
var invariant = require('fbjs/lib/invariant');
|
||||||
var pointsDiffer = require('pointsDiffer');
|
|
||||||
var requireNativeComponent = require('requireNativeComponent');
|
var requireNativeComponent = require('requireNativeComponent');
|
||||||
var processDecelerationRate = require('processDecelerationRate');
|
var processDecelerationRate = require('processDecelerationRate');
|
||||||
var PropTypes = React.PropTypes;
|
var PropTypes = React.PropTypes;
|
||||||
|
@ -558,36 +554,6 @@ var styles = StyleSheet.create({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
var validAttributes = {
|
|
||||||
...ReactNativeViewAttributes.UIView,
|
|
||||||
alwaysBounceHorizontal: true,
|
|
||||||
alwaysBounceVertical: true,
|
|
||||||
automaticallyAdjustContentInsets: true,
|
|
||||||
bounces: true,
|
|
||||||
centerContent: true,
|
|
||||||
contentInset: {diff: insetsDiffer},
|
|
||||||
contentOffset: {diff: pointsDiffer},
|
|
||||||
decelerationRate: true,
|
|
||||||
horizontal: true,
|
|
||||||
indicatorStyle: true,
|
|
||||||
keyboardDismissMode: true,
|
|
||||||
keyboardShouldPersistTaps: true,
|
|
||||||
maximumZoomScale: true,
|
|
||||||
minimumZoomScale: true,
|
|
||||||
pagingEnabled: true,
|
|
||||||
removeClippedSubviews: true,
|
|
||||||
scrollEnabled: true,
|
|
||||||
scrollIndicatorInsets: {diff: insetsDiffer},
|
|
||||||
scrollsToTop: true,
|
|
||||||
showsHorizontalScrollIndicator: true,
|
|
||||||
showsVerticalScrollIndicator: true,
|
|
||||||
snapToInterval: true,
|
|
||||||
snapToAlignment: true,
|
|
||||||
stickyHeaderIndices: {diff: deepDiffer},
|
|
||||||
scrollEventThrottle: true,
|
|
||||||
zoomScale: true,
|
|
||||||
};
|
|
||||||
|
|
||||||
if (Platform.OS === 'android') {
|
if (Platform.OS === 'android') {
|
||||||
var AndroidScrollView = requireNativeComponent('RCTScrollView', ScrollView);
|
var AndroidScrollView = requireNativeComponent('RCTScrollView', ScrollView);
|
||||||
var AndroidHorizontalScrollView = requireNativeComponent(
|
var AndroidHorizontalScrollView = requireNativeComponent(
|
||||||
|
|
Loading…
Reference in New Issue