Open singhsaurabh920 opened 9 months ago
Hi, have you tried installing the deprecated react native prop types package? This did it for me. I don't think there is any other way around.
npm install deprecated-react-native-prop-types
or
yarn add deprecated-react-native-prop-types
First install deprecated-react-native-prop-types then
add import { ViewPropTypes } from 'deprecated-react-native-prop-types'; in \node_modules\react-native-slider\src\Slider.js
then yarn patch-package react-native-slider
ERROR ViewPropTypes will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using ViewPropTypes, migrate to the 'deprecated-react-native-prop-types' package. at MainStackNavigator at EnsureSingleNavigator (http://localhost:8081/index.bundle?