Compose propTypes from View.propTypes where appropriate.
Reviewed By: davidaurelio Differential Revision: D2668380 fb-gh-sync-id: f34fc8df3bbf755c710e99c5421762406afaba2c
This commit is contained in:
parent
530ee3eeac
commit
dd09c88571
|
@ -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).
|
||||
*/
|
||||
|
|
|
@ -41,6 +41,7 @@ var DatePickerIOS = React.createClass({
|
|||
mixins: [NativeMethodsMixin],
|
||||
|
||||
propTypes: {
|
||||
...View.propTypes,
|
||||
/**
|
||||
* The currently selected date.
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -24,6 +24,7 @@ var TabBarIOS = React.createClass({
|
|||
},
|
||||
|
||||
propTypes: {
|
||||
...View.propTypes,
|
||||
style: View.propTypes.style,
|
||||
/**
|
||||
* Color of the currently selected tab icon
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue