Skip to content

Commit

Permalink
Use deprecate-react-native-prop-types
Browse files Browse the repository at this point in the history
  • Loading branch information
irmakcosarsahna committed Jul 10, 2022
1 parent a7f46de commit 779c984
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DefaultTabBar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const React = require('react');
const { ViewPropTypes } = ReactNative = require('react-native');
const { ViewPropTypes } = ReactNative = require('deprecated-react-native-prop-types');
const PropTypes = require('prop-types');
const createReactClass = require('create-react-class');
const {
Expand Down
2 changes: 1 addition & 1 deletion ScrollableTabBar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const React = require('react');
const { ViewPropTypes } = ReactNative = require('react-native');
const { ViewPropTypes } = ReactNative = require('deprecated-react-native-prop-types');
const PropTypes = require('prop-types');
const createReactClass = require('create-react-class');
const {
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const React = require('react');
const { Component } = React;
const { ViewPropTypes } = ReactNative = require('react-native');
const { ViewPropTypes } = ReactNative = require('deprecated-react-native-prop-types');
const createReactClass = require('create-react-class');
const PropTypes = require('prop-types');
const {
Expand Down Expand Up @@ -342,7 +342,7 @@ const ScrollableTabView = createReactClass({
if (!width || width <= 0 || Math.round(width) === Math.round(this.state.containerWidth)) {
return;
}

if (Platform.OS === 'ios') {
const containerWidthAnimatedValue = new Animated.Value(width);
// Need to call __makeNative manually to avoid a native animated bug. See
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"@react-native-community/viewpager": "3.3.0",
"create-react-class": "^15.6.2",
"prop-types": "^15.6.0",
"react-timer-mixin": "^0.13.3"
"react-timer-mixin": "^0.13.3",
"deprecated-react-native-prop-types": "^2.3.0"
},
"devDependencies": {
"babel-eslint": "^6.1.2",
Expand Down

0 comments on commit 779c984

Please sign in to comment.