Compose propTypes from View.propTypes where appropriate.

Reviewed By: davidaurelio

Differential Revision: D2668380

fb-gh-sync-id: f34fc8df3bbf755c710e99c5421762406afaba2c
This commit is contained in:
Krzysztof Magiera 2015-11-18 11:34:05 -08:00 committed by facebook-github-bot-8
parent 530ee3eeac
commit dd09c88571
13 changed files with 17 additions and 0 deletions

View File

@ -32,6 +32,7 @@ var ActivityIndicatorIOS = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
...View.propTypes,
/**
* Whether to show the indicator (true, the default) or hide it (false).
*/

View File

@ -41,6 +41,7 @@ var DatePickerIOS = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
...View.propTypes,
/**
* The currently selected date.
*/

View File

@ -63,6 +63,7 @@ var MapView = React.createClass({
},
propTypes: {
...View.propTypes,
/**
* Used to style and layout the `MapView`. See `StyleSheet.js` and
* `ViewStylePropTypes.js` for more info.

View File

@ -14,6 +14,7 @@ var NativeMethodsMixin = require('NativeMethodsMixin');
var React = require('React');
var ReactPropTypes = require('ReactPropTypes');
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
var View = require('View');
var requireNativeComponent = require('requireNativeComponent');
@ -63,6 +64,7 @@ var indeterminateType = function(props, propName, componentName) {
*/
var ProgressBarAndroid = React.createClass({
propTypes: {
...View.propTypes,
/**
* Style of the ProgressBar. One of:
*

View File

@ -17,6 +17,7 @@ var NativeModules = require('NativeModules');
var PropTypes = require('ReactPropTypes');
var React = require('React');
var StyleSheet = require('StyleSheet');
var View = require('View');
var requireNativeComponent = require('requireNativeComponent');
@ -27,6 +28,7 @@ var ProgressViewIOS = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
...View.propTypes,
/**
* The progress bar style.
*/

View File

@ -16,6 +16,7 @@ var NativeModules = require('NativeModules');
var PropTypes = require('ReactPropTypes');
var React = require('React');
var StyleSheet = require('StyleSheet');
var View = require('View');
var requireNativeComponent = require('requireNativeComponent');
@ -35,6 +36,7 @@ var SegmentedControlIOS = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
...View.propTypes,
/**
* The labels for the control's segment buttons, in order.
*/

View File

@ -26,6 +26,7 @@ var SliderIOS = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
...View.propTypes,
/**
* Used to style and layout the `Slider`. See `StyleSheet.js` and
* `ViewStylePropTypes.js` for more info.

View File

@ -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.

View File

@ -24,6 +24,7 @@ var TabBarIOS = React.createClass({
},
propTypes: {
...View.propTypes,
style: View.propTypes.style,
/**
* Color of the currently selected tab icon

View File

@ -21,6 +21,7 @@ var requireNativeComponent = require('requireNativeComponent');
var TabBarItemIOS = React.createClass({
propTypes: {
...View.propTypes,
/**
* Little red bubble that sits at the top right of the icon.
*/

View File

@ -88,6 +88,7 @@ var WebView = React.createClass({
},
propTypes: {
...View.propTypes,
url: PropTypes.string,
html: PropTypes.string,
renderError: PropTypes.func, // view to show if there's an error

View File

@ -29,6 +29,7 @@ var PickerIOS = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
...View.propTypes,
onValueChange: React.PropTypes.func,
selectedValue: React.PropTypes.any, // string or integer basically
},

View File

@ -38,6 +38,7 @@ var SnapshotViewIOS = React.createClass({
},
propTypes: {
...View.propTypes,
// 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