expo / snack

Expo Snack lets you run Expo in the browser.
https://snack.expo.dev
MIT License
347 stars 96 forks source link

Expo Snack does not support lottie-react-native #589

Open jcohenho opened 3 weeks ago

jcohenho commented 3 weeks ago

Summary

I'd like to test Lottie files in a Snack using lottie-react-native, but I get the following error when I try to add the package as a dependency in package.json:

Failed to resolve dependency 'lottie-react-native@6.7.0' (Cannot resolve module react-native/Libraries/NativeComponent/ViewConfigIgnore after installing it as a dependency)

What platform(s) does this occur on?

iOS, Web

SDK Version

v51.0.0

(I've tested multiple SDK versions along with multiple versions of the lottie-react-native package and get the same error)

Reproducible demo or steps to reproduce from a blank project

https://snack.expo.dev/@jcohenho/lottie-react-native-issue

package.json

{
  "dependencies": {
    "react-native-paper": "4.9.2",
    "@expo/vector-icons": "^14.0.0",
     "lottie-react-native": "6.7.0"
  }
}
jvgeee commented 13 hours ago

+10. need to log a bug with Lottie and they specifically suggest doing it via a snack, yet Snack is failing to load it!