[fix] avoid prop types check on UnimplementedView

Fix #635
This commit is contained in:
Nicolas Gallagher
2017-09-14 11:08:36 -07:00
parent fc751ed715
commit dd0f1de3d1
2 changed files with 3 additions and 8 deletions
@@ -19,7 +19,7 @@ import StyleSheet from '../../apis/StyleSheet';
import TimerMixin from 'react-timer-mixin';
import Touchable from './Touchable';
import warning from 'fbjs/lib/warning';
import { bool, element, func, number, string } from 'prop-types';
import { bool, func, number, string } from 'prop-types';
type Event = Object;
@@ -33,7 +33,7 @@ const PRESS_RETENTION_OFFSET = { top: 20, left: 20, right: 20, bottom: 30 };
* If you wish to have several child components, wrap them in a View.
*/
/* eslint-disable react/prefer-es6-class */
/* eslint-disable react/prefer-es6-class, react/prop-types */
const TouchableWithoutFeedback = createReactClass({
displayName: 'TouchableWithoutFeedback',
mixins: [TimerMixin, Touchable.Mixin],
+1 -6
View File
@@ -11,18 +11,13 @@
*/
import View from '../View';
import { any, object } from 'prop-types';
import React, { Component } from 'react';
/**
* Common implementation for a simple stubbed view.
*/
/* eslint-disable react/prop-types */
class UnimplementedView extends Component {
static propTypes = {
children: any,
style: object
};
setNativeProps() {
// Do nothing.
// This method is required in order to use this view as a Touchable* child.