From e4f61e264b7c84fc0083aff520fc9a2a26e6b411 Mon Sep 17 00:00:00 2001 From: Reflect Code Date: Sat, 29 Oct 2022 21:19:33 +0530 Subject: [PATCH] Resolved ViewPropTypes removed from React Native Resolved ViewPropTypes removed from React Native https://github.com/aksonov/react-native-router-flux/issues/3826 --- package.json | 1 + src/Router.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 339d463d9..ae442522d 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "react-navigation-drawer": "^2.2.1", "react-navigation-stack": "^2.10.2", "react-navigation-tabs": "^2.10.1", + "deprecated-react-native-prop-types":"^2.2.0", "remove": "^0.1.5" }, "devDependencies": { diff --git a/src/Router.js b/src/Router.js index 6f595e4bf..daf1b214e 100644 --- a/src/Router.js +++ b/src/Router.js @@ -1,5 +1,8 @@ import React from 'react'; -import { ViewPropTypes, BackHandler, Linking } from 'react-native'; + +import { BackHandler, Linking } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; + import PropTypes from 'prop-types'; import NavigationStore from './Store'; import defaultStore from './defaultStore';