oblador / react-native-shimmer

Simple shimmering effect for any view in React Native
MIT License
700 stars 90 forks source link

Shimmer has no propType #9

Closed rubi closed 4 years ago

rubi commented 7 years ago

I come across the problem, like this "Shimmer has no propType for native prop ''RnShimmeringView.onLayout" of native type 'boolean', how to resolve it.

rcorrie commented 7 years ago

I get this too

image

rommyarb commented 5 years ago

I found the solution:

Add prop-types to dependency npm i --save prop-types

and revert back to version 0.4.1 npm i --save react-native-shimmer@0.4.1

Now it works.

oblador commented 4 years ago

Unable to reproduce, it's possible your JS code is out of sync with your compiled binary. Closing for now, reopen with a reproduction if it still persists.