Home > OS >  WARN ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'd
WARN ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'd

Time:05-19

Expo version: 45 Using Stack Navigation and Native Base. I am using props but I am getting this warning. Why I am getting this warning?

CodePudding user response:

Native Base hasn't update their source code to include the migration to deprecated-react-native-prop-types. You can read more about it here https://github.com/facebook/react-native/issues/33557

You can add the following snippet at the start of your app (probably App.js) to suppress the warning for now.

import {LogBox} from "react-native";

LogBox.ignoreLogs([
"ViewPropTypes will be removed",
"ColorPropType will be removed",
])
  • Related