Skip to content

Commit 2de5e63

Browse files
fixed error -" Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'."
1 parent 2e53667 commit 2de5e63

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

DoubleTapView.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
import React, {Component} from 'react';
1111
import {
1212
View,
13-
PanResponder,
14-
ViewPropTypes,
13+
PanResponder
1514
} from 'react-native';
1615
import PropTypes from 'prop-types';
17-
16+
import {ViewPropTypes} from 'deprecated-react-native-prop-types';
1817
export default class DoubleTapView extends Component {
1918

2019
static propTypes = {

PdfPageView.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
import React, {PureComponent} from 'react';
1212
import PropTypes from 'prop-types';
1313
import {
14-
ViewPropTypes,
1514
requireNativeComponent,
1615
} from 'react-native';
17-
16+
import {ViewPropTypes} from 'deprecated-react-native-prop-types';
1817
export default class PdfPageView extends PureComponent {
1918
_getStylePropsProps = () => {
2019
const {width, height} = this.props;

PdfView.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
'use strict';
1010
import React, {Component} from 'react';
11-
import {ScrollView, FlatList, View, StyleSheet, ViewPropTypes} from 'react-native';
12-
11+
import {ScrollView, FlatList, View, StyleSheet} from 'react-native';
12+
import {ViewPropTypes} from 'deprecated-react-native-prop-types';
1313
import PropTypes from 'prop-types';
1414

1515
import PdfManager from './PdfManager';

PinchZoomView.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ import PropTypes from 'prop-types';
1212
import {
1313
View,
1414
StyleSheet,
15-
PanResponder,
16-
ViewPropTypes,
15+
PanResponder
1716
} from 'react-native';
18-
17+
import {ViewPropTypes} from 'deprecated-react-native-prop-types';
1918
export default class PinchZoomView extends Component {
2019

2120
static propTypes = {

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ import {
1313
requireNativeComponent,
1414
View,
1515
Platform,
16-
ViewPropTypes,
1716
StyleSheet,
1817
Image,
1918
Text
2019
} from 'react-native';
2120

2221
import ReactNativeBlobUtil from 'react-native-blob-util'
23-
22+
import {ViewPropTypes} from 'deprecated-react-native-prop-types';
2423
const SHA1 = require('crypto-js/sha1');
2524
import PdfView from './PdfView';
2625

0 commit comments

Comments
 (0)