Update Lottie-react-native 5.1.3 for resolve issues ViewPropTypes will be removed from React Native.
Update Lottie-react-native 5.1.3 for resolve issues ViewPropTypes will be removed from React Native.
how/when they are going to update? I’m tired of seeing expo doctor warnings
we will update in sdk 46. you can use patch-package to fix the issue if you don’t want to wait and prefer not to see the warnings. also, you could open a discussion on Discussions · expo/expo · GitHub to propose a way to silence dependency warnings
Thanks a lot expo team!
Btw do we have the date for sdk 46?
My guess (based on their usual three month release cycle) is that it could be at the end of July/beginning of August. But it could potentially be longer (e.g. end of August).
Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from ‘deprecated-react-native-prop-types’.
I had migrated to SDK46 but faced that error
Hello,
I have a problem with ViewPropTypes after upgrading to SDK 46 too.
My expo doctor output: expo doctor
Didn’t find any issues with the project!
I found out the file NativeViewManagerAdapter.native.js in node_modules/expo/node_modules/expo-modules-core/build is using: import { NativeModules, UIManager, ViewPropTypes, requireNativeComponent } from ‘react-native’; which I believe to cause the problem. If I change it to:
import { NativeModules, UIManager, requireNativeComponent } from ‘react-native’;
import { ViewPropTypes } from ‘deprecated-react-native-prop-types’;
I can successfully make the build on my local machine, but it EAS build will be crashed.
My package.json:
{
…
“expo”: “^46.0.10”,
“expo-application”: “~4.2.2”,
“expo-auth-session”: “~3.7.1”,
“expo-camera”: “~12.3.0”,
“expo-constants”: “~13.2.4”,
“expo-crypto”: “~11.0.0”,
“expo-device”: “~4.3.0”,
“expo-face-detector”: “~11.3.0”,
“expo-file-system”: “~14.1.0”,
“expo-font”: “~10.2.0”,
“expo-intent-launcher”: “~10.3.0”,
“expo-linking”: “~3.2.2”,
“expo-local-authentication”: “~12.3.0”,
“expo-mail-composer”: “~11.3.0”,
“expo-modules-core”: “~0.11.5”,
“expo-network”: “~4.3.0”,
“expo-random”: “~12.3.0”,
“expo-splash-screen”: “~0.16.2”,
“expo-status-bar”: “~1.4.0”,
“expo-updates”: “~0.14.5”,
“expo-web-browser”: “~11.0.0”,
“i18n-js”: “3.8.0”,
“lottie-react-native”: “5.1.3”,
“moment”: “^2.29.1”,
“moment-timezone”: “^0.5.33”,
“native-base”: “3.2.2”,
“react”: “18.0.0”,
“react-dom”: “18.0.0”,
“react-native”: “0.69.5”,
…
}
Please let me know what to do.
Thank you,
Bao Le.