mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-25 12:55:41 +08:00
Compose propTypes from View.propTypes where appropriate.
Reviewed By: davidaurelio Differential Revision: D2668380 fb-gh-sync-id: f34fc8df3bbf755c710e99c5421762406afaba2c
This commit is contained in:
committed by
facebook-github-bot-8
parent
530ee3eeac
commit
dd09c88571
@@ -17,6 +17,7 @@ var NativeMethodsMixin = require('NativeMethodsMixin');
|
||||
var PropTypes = require('ReactPropTypes');
|
||||
var React = require('React');
|
||||
var StyleSheet = require('StyleSheet');
|
||||
var View = require('View');
|
||||
|
||||
var requireNativeComponent = require('requireNativeComponent');
|
||||
|
||||
@@ -40,6 +41,7 @@ var SwitchIOS = React.createClass({
|
||||
mixins: [NativeMethodsMixin],
|
||||
|
||||
propTypes: {
|
||||
...View.propTypes,
|
||||
/**
|
||||
* The value of the switch, if true the switch will be turned on.
|
||||
* Default value is false.
|
||||
|
||||
Reference in New Issue
Block a user