diff --git a/Libraries/Components/ActivityIndicator/ActivityIndicator.js b/Libraries/Components/ActivityIndicator/ActivityIndicator.js index 74630e39e..8676f897a 100644 --- a/Libraries/Components/ActivityIndicator/ActivityIndicator.js +++ b/Libraries/Components/ActivityIndicator/ActivityIndicator.js @@ -18,6 +18,8 @@ const React = require('React'); const StyleSheet = require('StyleSheet'); const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + const requireNativeComponent = require('requireNativeComponent'); const PropTypes = React.PropTypes; @@ -40,7 +42,7 @@ const ActivityIndicator = React.createClass({ mixins: [NativeMethodsMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * Whether to show the indicator (true, the default) or hide it (false). */ diff --git a/Libraries/Components/DatePicker/DatePickerIOS.ios.js b/Libraries/Components/DatePicker/DatePickerIOS.ios.js index bb001d7e1..1d8dfd5bc 100644 --- a/Libraries/Components/DatePicker/DatePickerIOS.ios.js +++ b/Libraries/Components/DatePicker/DatePickerIOS.ios.js @@ -18,6 +18,8 @@ const React = require('React'); const StyleSheet = require('StyleSheet'); const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + const requireNativeComponent = require('requireNativeComponent'); const PropTypes = React.PropTypes; @@ -43,7 +45,7 @@ const DatePickerIOS = React.createClass({ mixins: [NativeMethodsMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * The currently selected date. */ diff --git a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js index 4898abd11..6fcca0f53 100644 --- a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +++ b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js @@ -20,6 +20,8 @@ var StyleSheet = require('StyleSheet'); var UIManager = require('UIManager'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + var DrawerConsts = UIManager.AndroidDrawerLayout.Constants; var dismissKeyboard = require('dismissKeyboard'); @@ -73,7 +75,7 @@ var DrawerLayoutAndroid = React.createClass({ }, propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * Determines whether the keyboard gets dismissed in response to a drag. * - 'none' (the default), drags do not dismiss the keyboard. diff --git a/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/Libraries/Components/Keyboard/KeyboardAvoidingView.js index f20fb0323..ad310e503 100644 --- a/Libraries/Components/Keyboard/KeyboardAvoidingView.js +++ b/Libraries/Components/Keyboard/KeyboardAvoidingView.js @@ -18,6 +18,8 @@ const React = require('React'); const TimerMixin = require('react-timer-mixin'); const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + const PropTypes = React.PropTypes; import type EmitterSubscription from 'EmitterSubscription'; @@ -57,13 +59,13 @@ const KeyboardAvoidingView = React.createClass({ mixins: [TimerMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, behavior: PropTypes.oneOf(['height', 'position', 'padding']), /** * The style of the content container(View) when behavior is 'position'. */ - contentContainerStyle: View.propTypes.style, + contentContainerStyle: ViewPropTypes.style, /** * This is the distance between the top of the user screen and the react native view, diff --git a/Libraries/Components/Navigation/NavigatorIOS.ios.js b/Libraries/Components/Navigation/NavigatorIOS.ios.js index 10c18e0c5..d02aea57a 100644 --- a/Libraries/Components/Navigation/NavigatorIOS.ios.js +++ b/Libraries/Components/Navigation/NavigatorIOS.ios.js @@ -22,6 +22,8 @@ var StyleSheet = require('StyleSheet'); var TVEventHandler = require('TVEventHandler'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + var invariant = require('fbjs/lib/invariant'); var logError = require('logError'); var requireNativeComponent = require('requireNativeComponent'); @@ -406,7 +408,7 @@ var NavigatorIOS = React.createClass({ /** * Styles for the navigation item containing the component. */ - wrapperStyle: View.propTypes.style, + wrapperStyle: ViewPropTypes.style, /** * Boolean value that indicates whether the navigation bar is hidden. @@ -458,7 +460,7 @@ var NavigatorIOS = React.createClass({ * The default wrapper style for components in the navigator. * A common use case is to set the `backgroundColor` for every scene. */ - itemWrapperStyle: View.propTypes.style, + itemWrapperStyle: ViewPropTypes.style, /** * The default color used for the buttons in the navigation bar. diff --git a/Libraries/Components/Picker/Picker.js b/Libraries/Components/Picker/Picker.js index 1f8441814..a85dd7a65 100644 --- a/Libraries/Components/Picker/Picker.js +++ b/Libraries/Components/Picker/Picker.js @@ -20,7 +20,7 @@ var React = require('React'); var StyleSheetPropType = require('StyleSheetPropType'); var TextStylePropTypes = require('TextStylePropTypes'); var UnimplementedView = require('UnimplementedView'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var ViewStylePropTypes = require('ViewStylePropTypes'); var itemStylePropType = StyleSheetPropType(TextStylePropTypes); @@ -71,7 +71,7 @@ class Picker extends React.Component { // $FlowFixMe(>=0.41.0) static propTypes = { - ...View.propTypes, + ...ViewPropTypes, style: pickerStyleType, /** * Value matching value of one of the items. Can be a string or an integer. diff --git a/Libraries/Components/Picker/PickerAndroid.android.js b/Libraries/Components/Picker/PickerAndroid.android.js index 8be1579ae..511b4d319 100644 --- a/Libraries/Components/Picker/PickerAndroid.android.js +++ b/Libraries/Components/Picker/PickerAndroid.android.js @@ -16,7 +16,7 @@ var ColorPropType = require('ColorPropType'); var React = require('React'); var StyleSheet = require('StyleSheet'); var StyleSheetPropType = require('StyleSheetPropType'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var ViewStylePropTypes = require('ViewStylePropTypes'); var processColor = require('processColor'); @@ -51,7 +51,7 @@ class PickerAndroid extends React.Component { state: *; static propTypes = { - ...View.propTypes, + ...ViewPropTypes, style: pickerStyleType, selectedValue: React.PropTypes.any, enabled: ReactPropTypes.bool, diff --git a/Libraries/Components/Picker/PickerIOS.ios.js b/Libraries/Components/Picker/PickerIOS.ios.js index 93a429cbe..9bdacdddd 100644 --- a/Libraries/Components/Picker/PickerIOS.ios.js +++ b/Libraries/Components/Picker/PickerIOS.ios.js @@ -18,6 +18,7 @@ var StyleSheet = require('StyleSheet'); var StyleSheetPropType = require('StyleSheetPropType'); var TextStylePropTypes = require('TextStylePropTypes'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var processColor = require('processColor'); var itemStylePropType = StyleSheetPropType(TextStylePropTypes); @@ -27,7 +28,7 @@ var PickerIOS = React.createClass({ mixins: [NativeMethodsMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, itemStyle: itemStylePropType, onValueChange: React.PropTypes.func, selectedValue: React.PropTypes.any, // string or integer basically diff --git a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js index 451ddab22..a38c25c46 100644 --- a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +++ b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js @@ -12,7 +12,7 @@ var NativeMethodsMixin = require('NativeMethodsMixin'); var React = require('React'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var ColorPropType = require('ColorPropType'); var requireNativeComponent = require('requireNativeComponent'); @@ -66,7 +66,7 @@ var indeterminateType = function(props, propName, componentName) { */ var ProgressBarAndroid = React.createClass({ propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * Style of the ProgressBar. One of: * diff --git a/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js b/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js index 6ee4db298..a8287f8b4 100644 --- a/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +++ b/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js @@ -15,7 +15,7 @@ var Image = require('Image'); var NativeMethodsMixin = require('NativeMethodsMixin'); var React = require('React'); var StyleSheet = require('StyleSheet'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var requireNativeComponent = require('requireNativeComponent'); @@ -29,7 +29,7 @@ var ProgressViewIOS = React.createClass({ mixins: [NativeMethodsMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * The progress bar style. */ diff --git a/Libraries/Components/RefreshControl/RefreshControl.js b/Libraries/Components/RefreshControl/RefreshControl.js index a1eff537d..02db53302 100644 --- a/Libraries/Components/RefreshControl/RefreshControl.js +++ b/Libraries/Components/RefreshControl/RefreshControl.js @@ -15,7 +15,7 @@ const ColorPropType = require('ColorPropType'); const NativeMethodsMixin = require('NativeMethodsMixin'); const Platform = require('Platform'); const React = require('React'); -const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); const requireNativeComponent = require('requireNativeComponent'); @@ -79,7 +79,7 @@ const RefreshControl = React.createClass({ mixins: [NativeMethodsMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * Called when the view starts refreshing. */ diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index bdd50b3dc..aa1f7e376 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -23,6 +23,7 @@ const ScrollViewStickyHeader = require('ScrollViewStickyHeader'); const StyleSheet = require('StyleSheet'); const StyleSheetPropType = require('StyleSheetPropType'); const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); const ViewStylePropTypes = require('ViewStylePropTypes'); const dismissKeyboard = require('dismissKeyboard'); @@ -70,7 +71,7 @@ const requireNativeComponent = require('requireNativeComponent'); // $FlowFixMe(>=0.41.0) const ScrollView = React.createClass({ propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * Controls whether iOS should automatically adjust the content inset * for scroll views that are placed behind a navigation bar or diff --git a/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js b/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js index 200e198e1..9ac6f3cef 100644 --- a/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +++ b/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js @@ -14,7 +14,7 @@ var NativeMethodsMixin = require('NativeMethodsMixin'); var React = require('React'); var StyleSheet = require('StyleSheet'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var requireNativeComponent = require('requireNativeComponent'); @@ -54,7 +54,7 @@ var SegmentedControlIOS = React.createClass({ mixins: [NativeMethodsMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * The labels for the control's segment buttons, in order. */ diff --git a/Libraries/Components/Slider/Slider.js b/Libraries/Components/Slider/Slider.js index 3fbe92fc5..6ca9e49ae 100644 --- a/Libraries/Components/Slider/Slider.js +++ b/Libraries/Components/Slider/Slider.js @@ -18,7 +18,7 @@ var ReactNativeViewAttributes = require('ReactNativeViewAttributes'); var Platform = require('Platform'); var React = require('React'); var StyleSheet = require('StyleSheet'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var requireNativeComponent = require('requireNativeComponent'); @@ -34,13 +34,13 @@ var Slider = React.createClass({ mixins: [NativeMethodsMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * Used to style and layout the `Slider`. See `StyleSheet.js` and * `ViewStylePropTypes.js` for more info. */ - style: View.propTypes.style, + style: ViewPropTypes.style, /** * Initial value of the slider. The value should be between minimumValue diff --git a/Libraries/Components/Switch/Switch.js b/Libraries/Components/Switch/Switch.js index f614164ca..04ed872dc 100644 --- a/Libraries/Components/Switch/Switch.js +++ b/Libraries/Components/Switch/Switch.js @@ -16,7 +16,7 @@ var NativeMethodsMixin = require('NativeMethodsMixin'); var Platform = require('Platform'); var React = require('React'); var StyleSheet = require('StyleSheet'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var requireNativeComponent = require('requireNativeComponent'); @@ -41,7 +41,7 @@ type DefaultProps = { // $FlowFixMe(>=0.41.0) var Switch = React.createClass({ propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * The value of the switch. If true the switch will be turned on. * Default value is false. diff --git a/Libraries/Components/TabBarIOS/TabBarIOS.ios.js b/Libraries/Components/TabBarIOS/TabBarIOS.ios.js index 5ccab62e1..3ccabc582 100644 --- a/Libraries/Components/TabBarIOS/TabBarIOS.ios.js +++ b/Libraries/Components/TabBarIOS/TabBarIOS.ios.js @@ -15,7 +15,7 @@ var ColorPropType = require('ColorPropType'); var React = require('React'); var StyleSheet = require('StyleSheet'); var TabBarItemIOS = require('TabBarItemIOS'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var requireNativeComponent = require('requireNativeComponent'); @@ -34,8 +34,8 @@ class TabBarIOS extends React.Component { // $FlowFixMe(>=0.41.0) static propTypes = { - ...View.propTypes, - style: View.propTypes.style, + ...ViewPropTypes, + style: ViewPropTypes.style, /** * Color of text on unselected tabs */ diff --git a/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js b/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js index 63f0cd56d..39eb95ab2 100644 --- a/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js +++ b/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js @@ -18,11 +18,13 @@ var StaticContainer = require('StaticContainer.react'); var StyleSheet = require('StyleSheet'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + var requireNativeComponent = require('requireNativeComponent'); class TabBarItemIOS extends React.Component { static propTypes = { - ...View.propTypes, + ...ViewPropTypes, /** * Little red bubble that sits at the top right of the icon. */ @@ -80,7 +82,7 @@ class TabBarItemIOS extends React.Component { /** * React style object. */ - style: View.propTypes.style, + style: ViewPropTypes.style, /** * Text that appears under the icon. It is ignored when a system icon * is defined. diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 3f01022cb..2f24ab240 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -24,7 +24,7 @@ const TextInputState = require('TextInputState'); const TimerMixin = require('react-timer-mixin'); const TouchableWithoutFeedback = require('TouchableWithoutFeedback'); const UIManager = require('UIManager'); -const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); const emptyFunction = require('fbjs/lib/emptyFunction'); const invariant = require('fbjs/lib/invariant'); @@ -176,7 +176,7 @@ const TextInput = React.createClass({ }, propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * Can tell `TextInput` to automatically capitalize certain characters. * diff --git a/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js b/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js index ccb6e9662..201c9c3fc 100644 --- a/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js +++ b/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js @@ -16,7 +16,7 @@ var NativeMethodsMixin = require('NativeMethodsMixin'); var React = require('React'); var ReactNativeViewAttributes = require('ReactNativeViewAttributes'); var UIManager = require('UIManager'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var ColorPropType = require('ColorPropType'); var requireNativeComponent = require('requireNativeComponent'); @@ -70,7 +70,7 @@ var ToolbarAndroid = React.createClass({ mixins: [NativeMethodsMixin], propTypes: { - ...View.propTypes, + ...ViewPropTypes, /** * Sets possible actions on the toolbar as part of the action menu. These are displayed as icons * or text on the right side of the widget. If they don't fit they are placed in an 'overflow' diff --git a/Libraries/Components/Touchable/TouchableHighlight.js b/Libraries/Components/Touchable/TouchableHighlight.js index 4651d9416..ee0d056b2 100644 --- a/Libraries/Components/Touchable/TouchableHighlight.js +++ b/Libraries/Components/Touchable/TouchableHighlight.js @@ -23,6 +23,8 @@ var Touchable = require('Touchable'); var TouchableWithoutFeedback = require('TouchableWithoutFeedback'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + var ensureComponentIsNative = require('ensureComponentIsNative'); var ensurePositiveDelayProps = require('ensurePositiveDelayProps'); var keyOf = require('fbjs/lib/keyOf'); @@ -79,7 +81,7 @@ var TouchableHighlight = React.createClass({ * active. */ underlayColor: ColorPropType, - style: View.propTypes.style, + style: ViewPropTypes.style, /** * Called immediately after the underlay is shown */ diff --git a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js index 7345901cf..be70e5a12 100644 --- a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js +++ b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js @@ -14,7 +14,7 @@ var React = require('React'); var ReactNative = require('ReactNative'); var UIManager = require('UIManager'); -var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var dismissKeyboard = require('dismissKeyboard'); var requireNativeComponent = require('requireNativeComponent'); @@ -81,7 +81,7 @@ class ViewPagerAndroid extends React.Component { }; static propTypes = { - ...View.propTypes, + ...ViewPropTypes, /** * Index of initial page that should be selected. Use `setPage` method to * update the page, and `onPageSelected` to monitor page changes diff --git a/Libraries/Components/WebView/WebView.android.js b/Libraries/Components/WebView/WebView.android.js index 4de8be62d..3bbb58ec5 100644 --- a/Libraries/Components/WebView/WebView.android.js +++ b/Libraries/Components/WebView/WebView.android.js @@ -18,6 +18,8 @@ var StyleSheet = require('StyleSheet'); var UIManager = require('UIManager'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + var deprecatedPropType = require('deprecatedPropType'); var keyMirror = require('fbjs/lib/keyMirror'); var requireNativeComponent = require('requireNativeComponent'); @@ -46,7 +48,7 @@ var defaultRenderLoading = () => ( */ class WebView extends React.Component { static propTypes = { - ...View.propTypes, + ...ViewPropTypes, renderError: PropTypes.func, renderLoading: PropTypes.func, onLoad: PropTypes.func, @@ -59,7 +61,7 @@ class WebView extends React.Component { onMessage: PropTypes.func, onContentSizeChange: PropTypes.func, startInLoadingState: PropTypes.bool, // force WebView to show loadingView on first load - style: View.propTypes.style, + style: ViewPropTypes.style, html: deprecatedPropType( PropTypes.string, diff --git a/Libraries/Components/WebView/WebView.ios.js b/Libraries/Components/WebView/WebView.ios.js index 96488b2c3..eae1ed6f6 100644 --- a/Libraries/Components/WebView/WebView.ios.js +++ b/Libraries/Components/WebView/WebView.ios.js @@ -19,6 +19,7 @@ var StyleSheet = require('StyleSheet'); var Text = require('Text'); var UIManager = require('UIManager'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var ScrollView = require('ScrollView'); var deprecatedPropType = require('deprecatedPropType'); @@ -117,7 +118,7 @@ class WebView extends React.Component { static NavigationType = NavigationType; static propTypes = { - ...View.propTypes, + ...ViewPropTypes, html: deprecatedPropType( PropTypes.string, @@ -253,7 +254,7 @@ class WebView extends React.Component { /** * The style to apply to the `WebView`. */ - style: View.propTypes.style, + style: ViewPropTypes.style, /** * Determines the types of data converted to clickable URLs in the web view’s content. diff --git a/Libraries/CustomComponents/Navigator/Navigator.js b/Libraries/CustomComponents/Navigator/Navigator.js index 105e7281a..5f4b05ad2 100644 --- a/Libraries/CustomComponents/Navigator/Navigator.js +++ b/Libraries/CustomComponents/Navigator/Navigator.js @@ -29,7 +29,7 @@ * * @providesModule Navigator */ - /* eslint-disable no-extra-boolean-cast*/ +/* eslint-disable no-extra-boolean-cast*/ 'use strict'; var AnimationsDebugModule = require('NativeModules').AnimationsDebugModule; @@ -47,6 +47,8 @@ var TVEventHandler = require('TVEventHandler'); var TimerMixin = require('react-timer-mixin'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + var clamp = require('clamp'); var flattenStyle = require('flattenStyle'); var invariant = require('fbjs/lib/invariant'); @@ -385,7 +387,7 @@ var Navigator = React.createClass({ /** * Styles to apply to the container of each scene. */ - sceneStyle: View.propTypes.style, + sceneStyle: ViewPropTypes.style, }, statics: { diff --git a/Libraries/CustomComponents/Navigator/NavigatorBreadcrumbNavigationBar.js b/Libraries/CustomComponents/Navigator/NavigatorBreadcrumbNavigationBar.js index c75f3f7b3..7ddeafda2 100644 --- a/Libraries/CustomComponents/Navigator/NavigatorBreadcrumbNavigationBar.js +++ b/Libraries/CustomComponents/Navigator/NavigatorBreadcrumbNavigationBar.js @@ -39,6 +39,8 @@ const React = require('React'); const StyleSheet = require('StyleSheet'); const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + const guid = require('guid'); const invariant = require('fbjs/lib/invariant'); @@ -99,7 +101,7 @@ class NavigatorBreadcrumbNavigationBar extends React.Component { routeStack: React.PropTypes.arrayOf(React.PropTypes.object), presentedIndex: React.PropTypes.number, }), - style: View.propTypes.style, + style: ViewPropTypes.style, }; static Styles = NavigatorBreadcrumbNavigationBarStyles; diff --git a/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js b/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js index 7a39b1821..9df140d45 100644 --- a/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js +++ b/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js @@ -33,6 +33,8 @@ var Platform = require('Platform'); var StyleSheet = require('StyleSheet'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + var guid = require('guid'); var { Map } = require('immutable'); @@ -63,7 +65,7 @@ class NavigatorNavigationBar extends React.Component { presentedIndex: React.PropTypes.number, }), navigationStyles: React.PropTypes.object, - style: View.propTypes.style, + style: ViewPropTypes.style, }; static Styles = NavigatorNavigationBarStyles; diff --git a/Libraries/Experimental/IncrementalPresenter.js b/Libraries/Experimental/IncrementalPresenter.js index 50d4d56b0..90c31fda2 100644 --- a/Libraries/Experimental/IncrementalPresenter.js +++ b/Libraries/Experimental/IncrementalPresenter.js @@ -15,6 +15,8 @@ const IncrementalGroup = require('IncrementalGroup'); const React = require('React'); const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + import type {Context} from 'Incremental'; /** @@ -47,7 +49,7 @@ class IncrementalPresenter extends React.Component { disabled: React.PropTypes.bool, onDone: React.PropTypes.func, onLayout: React.PropTypes.func, - style: View.propTypes.style, + style: ViewPropTypes.style, }; static contextTypes = { incrementalGroup: React.PropTypes.object, diff --git a/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js b/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js index b1d9ff2b2..5681011fc 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js @@ -29,6 +29,8 @@ const Text = require('Text'); const TouchableHighlight = require('TouchableHighlight'); const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + const {PropTypes} = React; import type {ImageSource} from 'ImageSource'; @@ -55,7 +57,7 @@ class SwipeableQuickActionButton extends React.Component { imageSource: Image.propTypes.source.isRequired, imageStyle: Image.propTypes.style, onPress: PropTypes.func, - style: View.propTypes.style, + style: ViewPropTypes.style, testID: PropTypes.string, text: PropTypes.string, textStyle: Text.propTypes.style, diff --git a/Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js b/Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js index d13914cb5..94dcc0090 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js @@ -27,6 +27,8 @@ const React = require('React'); const StyleSheet = require('StyleSheet'); const View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + /** * A thin wrapper around standard quick action buttons that can, if the user * chooses, be used with SwipeableListView. Sample usage is as follows, in the @@ -41,7 +43,7 @@ class SwipeableQuickActions extends React.Component { props: {style?: $FlowFixMe}; static propTypes = { - style: View.propTypes.style, + style: ViewPropTypes.style, }; render(): React.Element { diff --git a/Libraries/Image/Image.android.js b/Libraries/Image/Image.android.js index 7d4a7752d..dea4fac54 100644 --- a/Libraries/Image/Image.android.js +++ b/Libraries/Image/Image.android.js @@ -22,6 +22,7 @@ var Set = require('Set'); var StyleSheet = require('StyleSheet'); var StyleSheetPropType = require('StyleSheetPropType'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); var ViewStylePropTypes = require('ViewStylePropTypes'); var filterObject = require('fbjs/lib/filterObject'); @@ -78,7 +79,7 @@ var ImageSpecificStyleKeys = new Set(Object.keys(ImageStylePropTypes).filter(x = var Image = React.createClass({ propTypes: { - ...View.propTypes, + ...ViewPropTypes, style: StyleSheetPropType(ImageStylePropTypes), /** * `uri` is a string representing the resource identifier for the image, which diff --git a/Libraries/RCTTest/SnapshotViewIOS.ios.js b/Libraries/RCTTest/SnapshotViewIOS.ios.js index f14ef0a7d..892f1e2a7 100644 --- a/Libraries/RCTTest/SnapshotViewIOS.ios.js +++ b/Libraries/RCTTest/SnapshotViewIOS.ios.js @@ -17,6 +17,8 @@ var { TestModule } = require('NativeModules'); var UIManager = require('UIManager'); var View = require('View'); +const ViewPropTypes = require('ViewPropTypes'); + var requireNativeComponent = require('requireNativeComponent'); class SnapshotViewIOS extends React.Component { @@ -27,7 +29,7 @@ class SnapshotViewIOS extends React.Component { // $FlowFixMe(>=0.41.0) static propTypes = { - ...View.propTypes, + ...ViewPropTypes, // A callback when the Snapshot view is ready to be compared onSnapshotReady : React.PropTypes.func, // A name to identify the individual instance to the SnapshotView