Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WARN ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'

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?

like image 728
Rohit Kumar Thakur Avatar asked Sep 16 '25 17:09

Rohit Kumar Thakur


1 Answers

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",
])
like image 86
Vladyslav Kochetkov Avatar answered Sep 19 '25 07:09

Vladyslav Kochetkov