Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewPropTypes error #149

Open
allemptysheep opened this issue Jul 1, 2022 · 19 comments
Open

ViewPropTypes error #149

allemptysheep opened this issue Jul 1, 2022 · 19 comments

Comments

@allemptysheep
Copy link

ERROR Error: Requiring module "node_modules/react-native-image-slider-box/index.js", which threw an exception: Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.

@rvenky125
Copy link

I've upgraded the react-native version to 0.69.1. I can't run the app now. Is there any update @allemptysheep ?

@vjvdevs
Copy link

vjvdevs commented Jul 3, 2022

+1 same issue

@anehkumar
Copy link

Any update??

@rvenky125
Copy link

rvenky125 commented Jul 6, 2022

I've used this which working perfectly. https://www.npmjs.com/package/react-native-reanimated-carousel

@miftahsteven
Copy link

I have same problem. Any update for this?

@Iheb-miled
Copy link

Same problem any update please

@leesolway
Copy link

+1

@ankur3689
Copy link

Same problem any update please
S Simulator Screen Shot - iPhone 13 - 2022-08-03 at 23 13 21 imulator Screen Shot - iPhone 13 - 2022-08-03 at 23 13 21
.

@allefrodrigo
Copy link

allefrodrigo commented Aug 7, 2022

When I put this fragment of code the error disapear.

Code removed due to mistake

@ashadnasim52
Copy link

When I put this fragment of code the error disapear.

const ViewPropTypes = typeof document !== 'undefined' || Platform.OS === 'web'
  ? PropTypes.shape({style: PropTypes.object})
  : require('react-native').ViewPropTypes || View.propTypes;

Where did you put this code?

@allefrodrigo
Copy link

allefrodrigo commented Aug 22, 2022

When I put this fragment of code the error disapear.

const ViewPropTypes = typeof document !== 'undefined' || Platform.OS === 'web'
  ? PropTypes.shape({style: PropTypes.object})
  : require('react-native').ViewPropTypes || View.propTypes;

Where did you put this code?

Dude, sorry about, I realized that this solution should be in the repository react-native-snap-carousel, I made a mistake.

Sorry.

@Hassanjankhan
Copy link

Hassanjankhan commented Aug 23, 2022

same errror

version
"react": "18.0.0",
"react-native": "0.69.4",

@chris2795
Copy link

any update about this please i really need it for tutorial

@Hassanjankhan
Copy link

waiting for some one response i change the library

@megamaxs1234
Copy link

Solution:
first remove folder react-native-image-slider-box from node_modules folder
and then install
yarn add megamaxs1234/react-native-image-slider-box

@allefrodrigo
Copy link

yarn add megamaxs1234/react-native-image-slider-box

It work!

@galaxyreal
Copy link

megamaxs1234/react-native-image-slider-box

It works perfectly!
Please merge the updated code and release the new version.

@geraldcells18
Copy link

Thanks @megamaxs1234

@pupattan
Copy link

Why forked ? Not a PR ? @megamaxs1234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests