intellidev1991 / react-native-image-slider-box

A simple and fully customizable React Native component that implements an Image Slider UI.
MIT License
279 stars 100 forks source link

ViewPropTypes error #149

Open allemptysheep opened 2 years ago

allemptysheep commented 2 years ago

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 commented 2 years ago

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

vjvdevs commented 2 years ago

+1 same issue

anehkumar commented 2 years ago

Any update??

rvenky125 commented 2 years ago

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

miftahsteven commented 2 years ago

I have same problem. Any update for this?

Iheb-miled commented 2 years ago

Same problem any update please

leesolway commented 2 years ago

+1

ankur3689 commented 2 years ago

Same problem any update please S
![Simulator Screen Shot - iPhone 13 - 2022-08-03 at 23 13 21](https://user-images.githubusercontent.com/3107946/182674515-f7872606-68e0-477a-bbe4-a6010f6e5d94.png)
imulator Screen Shot - iPhone 13 - 2022-08-03 at 23 13 21 .

allefrodrigo commented 2 years ago

When I put this fragment of code the error disapear.

Code removed due to mistake
ashadnasim52 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

same errror

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

chris2795 commented 2 years ago

any update about this please i really need it for tutorial

Hassanjankhan commented 2 years ago

waiting for some one response i change the library

megamaxs1234 commented 2 years ago

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 commented 2 years ago

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

It work!

galaxyreal commented 2 years ago

megamaxs1234/react-native-image-slider-box

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

geraldcells18 commented 1 year ago

Thanks @megamaxs1234

pupattan commented 6 months ago

Why forked ? Not a PR ? @megamaxs1234