Skip to content

Commit

Permalink
Refactor view.propTypes to ViewPropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonday committed Mar 22, 2018
1 parent 52f1f59 commit ff9f3e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions DoubleTapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
import React, {Component} from 'react';
import {
View,
PanResponder
PanResponder,
ViewPropTypes,
} from 'react-native';
import PropTypes from 'prop-types';

export default class DoubleTapView extends Component {

static propTypes = {
...View.propTypes,
...ViewPropTypes,
delay: PropTypes.number,
radius: PropTypes.number,
onSingleTap: PropTypes.func,
Expand Down
6 changes: 3 additions & 3 deletions PdfView.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

'use strict';
import React, {Component} from 'react';
import {FlatList, View, StyleSheet} from 'react-native';
import {FlatList, View, StyleSheet, ViewPropTypes} from 'react-native';

import PropTypes from 'prop-types';

Expand All @@ -23,7 +23,7 @@ const VIEWABILITYCONFIG = {minimumViewTime: 500, itemVisiblePercentThreshold: 60
export default class PdfView extends Component {

static propTypes = {
...View.propTypes,
...ViewPropTypes,
path: PropTypes.string,
password: PropTypes.string,
scale: PropTypes.number,
Expand Down Expand Up @@ -333,4 +333,4 @@ const styles = StyleSheet.create({
container: {
flex: 1
}
});
});
5 changes: 3 additions & 2 deletions PinchZoomView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ import PropTypes from 'prop-types';
import {
View,
StyleSheet,
PanResponder
PanResponder,
ViewPropTypes,
} from 'react-native';

export default class PinchZoomView extends Component {

static propTypes = {
...View.propTypes,
...ViewPropTypes,
scalable: PropTypes.bool,
onScaleChanged: PropTypes.func,
};
Expand Down

0 comments on commit ff9f3e0

Please sign in to comment.