From 5a7f809e921262e4e2f646e8cfc4da85f7bd663d Mon Sep 17 00:00:00 2001 From: Apurba Kumar Ghosh Date: Thu, 4 Aug 2022 17:23:59 +0530 Subject: [PATCH] ViewPropTypes imported through deprecated-react-native-prop-types --- .DS_Store | Bin 0 -> 6148 bytes package.json | 1 + src/carousel/Carousel.js | 3 ++- src/pagination/Pagination.js | 3 ++- src/pagination/PaginationDot.js | 3 ++- src/parallaximage/ParallaxImage.js | 3 ++- 6 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..118db2ab2db3400bea2ebc45371cdb8e437ef126 GIT binary patch literal 6148 zcmeHK-EI;=6g~qei>(%uns8&XiMI`6+cX+)fU>D1)hb)`LJjV+q^{lW5EhCFA>mrz z!B_CsC-Ggp(rmkxaAlC#KhM$9v>y$(-!)TLA8C-6?0-cbTi#*20` zT0YH1O9`uLW2Qr_vW2;x$rZa;?$=EPlVBfUWqBJ^eor3o^99m|5a eic3gR&}WMRu&QyU5G@e%M?lhGGQ+?>W#9*szzx&@ literal 0 HcmV?d00001 diff --git a/package.json b/package.json index 7304e37ce..e1141b078 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "author": "Meliorence (github.com/meliorence)", "license": "BSD-3-Clause", "dependencies": { + "deprecated-react-native-prop-types": "^2.3.0", "prop-types": "^15.6.1", "react-addons-shallow-compare": "15.6.2" }, diff --git a/src/carousel/Carousel.js b/src/carousel/Carousel.js index dae71a3da..4dd36a254 100644 --- a/src/carousel/Carousel.js +++ b/src/carousel/Carousel.js @@ -1,5 +1,6 @@ import React, { Component } from 'react'; -import { Animated, Easing, FlatList, I18nManager, Platform, ScrollView, View, ViewPropTypes } from 'react-native'; +import { Animated, Easing, FlatList, I18nManager, Platform, ScrollView, View } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import shallowCompare from 'react-addons-shallow-compare'; import { diff --git a/src/pagination/Pagination.js b/src/pagination/Pagination.js index 5c021cf36..d300dce8e 100644 --- a/src/pagination/Pagination.js +++ b/src/pagination/Pagination.js @@ -1,5 +1,6 @@ import React, { PureComponent } from 'react'; -import { I18nManager, Platform, View, ViewPropTypes } from 'react-native'; +import { I18nManager, Platform, View } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import PaginationDot from './PaginationDot'; import styles from './Pagination.style'; diff --git a/src/pagination/PaginationDot.js b/src/pagination/PaginationDot.js index e59d1969f..d2c8dccc3 100644 --- a/src/pagination/PaginationDot.js +++ b/src/pagination/PaginationDot.js @@ -1,5 +1,6 @@ import React, { PureComponent } from 'react'; -import { View, Animated, Easing, TouchableOpacity, ViewPropTypes } from 'react-native'; +import { View, Animated, Easing, TouchableOpacity } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import styles from './Pagination.style'; diff --git a/src/parallaximage/ParallaxImage.js b/src/parallaximage/ParallaxImage.js index 8bc774a10..d6d9de3ba 100644 --- a/src/parallaximage/ParallaxImage.js +++ b/src/parallaximage/ParallaxImage.js @@ -1,7 +1,8 @@ // Parallax effect inspired by https://github.com/oblador/react-native-parallax/ import React, { Component } from 'react'; -import { View, ViewPropTypes, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native'; +import { View, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import styles from './ParallaxImage.style';