expo / vector-icons

https://icons.expo.fyi
MIT License
668 stars 115 forks source link

Icons don't work with Animated.createAnimatedComponent() #308

Open andrewlpmcneill opened 4 months ago

andrewlpmcneill commented 4 months ago

Creating animated components works everywhere else, but not with this Icon component library.

As recently as late 2023 they worked, but no longer.

using version 14.0.2

Edit:

I believe the issue is related to the error

TypeError: this._icon.setNativeProps is not a function (it is undefined)

I am getting this on build now, and it is triggered anytime I attempt to interact with an animated expo vector icon

cyril36 commented 2 months ago

I had the same error in 14.0.2 I had to downgrade to "@expo/vector-icons": "^13.0.0" to make it work