swaplet / react-native-swipe-cards-deck

A swipping cards deck (similar to Tinder)
MIT License
46 stars 19 forks source link

change deprecated ViewPropTypes to PropTypes #30

Open frknltrk opened 2 years ago

frknltrk commented 2 years ago

I used to have a problem in Expo's web view with this package. it was saying some stuff about ViewPropTypes. i did some research and tried a few solutions i found. last one worked. Since ViewPropTypes is removed and prop-types has a built-in style property, i did the necessary modifications and everything appears to work just fine now.

HugoLeBoennec commented 1 year ago

Edit I seems that built-in style proprety is note supported anymore. style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), from Stack

Previous: Thank I fix it manually, I hop i will be merge