mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Ran codemod to replace View.propTypes with ViewPropTypes
Reviewed By: yungsters Differential Revision: D4764838 fbshipit-source-id: 0b47a0fdd6793dab9333bb73bb93053fccc27dae
This commit is contained in:
committed by
Facebook Github Bot
parent
f891985bd8
commit
de8ce45258
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user