From 16451c0b0a036b9a9c6de6ca7a0646d1b6f1187a Mon Sep 17 00:00:00 2001 From: Muhammad Shakeel <69622246+shakeel0581@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:03:07 +0500 Subject: [PATCH 1/5] ViewPropTypes has been removed from React Native Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'. --- src/carousel/Carousel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/carousel/Carousel.js b/src/carousel/Carousel.js index dae71a3da..eb7c681aa 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 { From 98c8c7e9d71fa45e11a88be422bd0b8f8f16d77c Mon Sep 17 00:00:00 2001 From: Muhammad Shakeel <69622246+shakeel0581@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:04:22 +0500 Subject: [PATCH 2/5] ViewPropTypes has been removed from React Native Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'. --- src/pagination/Pagination.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pagination/Pagination.js b/src/pagination/Pagination.js index 5c021cf36..05deeb7c8 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'; From ae8beb744fd2e3466e66183b40e554f0adc7d493 Mon Sep 17 00:00:00 2001 From: Muhammad Shakeel <69622246+shakeel0581@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:05:27 +0500 Subject: [PATCH 3/5] ViewPropTypes has been removed from React Native. Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: hermes --- src/pagination/PaginationDot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pagination/PaginationDot.js b/src/pagination/PaginationDot.js index e59d1969f..16e39e7c2 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'; From 25dfaab595bc5ec1f31fe696cffd3fe5ba372afe Mon Sep 17 00:00:00 2001 From: Muhammad Shakeel <69622246+shakeel0581@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:06:22 +0500 Subject: [PATCH 4/5] ViewPropTypes has been removed from React Native Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: hermes --- src/parallaximage/ParallaxImage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parallaximage/ParallaxImage.js b/src/parallaximage/ParallaxImage.js index 8bc774a10..4c5c6e108 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'; From 976df25c9660fb4f45d001bbf0375c3e0b5fdf6a Mon Sep 17 00:00:00 2001 From: Muhammad Shakeel <69622246+shakeel0581@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:10:40 +0500 Subject: [PATCH 5/5] add new package I have added new package deprecated-react-native-prop-types --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 7304e37ce..aafb22dc1 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "license": "BSD-3-Clause", "dependencies": { "prop-types": "^15.6.1", + "deprecated-react-native-prop-types": "^2.3.0", "react-addons-shallow-compare": "15.6.2" }, "peerDependencies": {