Skip to content

Commit

Permalink
[fix] PropTypes production error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiccup19940325 authored and necolas committed Nov 23, 2016
1 parent fed780e commit ee264dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/components/ScrollView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import React, { Component, PropTypes } from 'react';
const ScrollView = React.createClass({
propTypes: {
...View.propTypes,
children: View.propTypes.children,
contentContainerStyle: StyleSheetPropType(ViewStylePropTypes),
horizontal: PropTypes.bool,
keyboardDismissMode: PropTypes.oneOf([ 'none', 'interactive', 'on-drag' ]),
Expand Down
2 changes: 1 addition & 1 deletion src/components/Touchable/TouchableHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var TouchableHighlight = React.createClass({
* active.
*/
underlayColor: ColorPropType,
style: View.propTypes.style,
style: React.PropTypes.style,
/**
* Called immediately after the underlay is shown
*/
Expand Down
7 changes: 3 additions & 4 deletions src/components/Touchable/TouchableWithoutFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var EdgeInsetsPropType = require('../../propTypes/EdgeInsetsPropType');
var React = require('react');
var TimerMixin = require('react-timer-mixin');
var Touchable = require('./Touchable');
var View = require('../View');
var ensurePositiveDelayProps = require('./ensurePositiveDelayProps');
var warning = require('fbjs/lib/warning');
var StyleSheet = require('../../apis/StyleSheet');
Expand All @@ -38,9 +37,9 @@ const TouchableWithoutFeedback = React.createClass({
mixins: [TimerMixin, Touchable.Mixin],

propTypes: {
accessible: View.propTypes.accessible,
accessibilityLabel: View.propTypes.accessibilityLabel,
accessibilityRole: View.propTypes.accessibilityRole,
accessible: React.PropTypes.bool,
accessibilityLabel: React.PropTypes.string,
accessibilityRole: React.PropTypes.string,
/**
* If true, disable all interactions for this component.
*/
Expand Down

0 comments on commit ee264dd

Please sign in to comment.