software-mansion / react-native-svg

SVG library for React Native, React Native Web, and plain React web projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snacks (from expo) with react-native-svg crash on native

chriscoomber opened this issue · comments

See e.g. the "open in snack" link in https://docs.expo.dev/versions/latest/sdk/svg/ which takes you to an example identical to this:

https://snack.expo.dev/@chris_whiterosemaths/svg-example

Bug

Running the above snack will crash on iOS and Android, whether through the online simulator/emulator, or on a real device via expo go.

The crash is:

View config getter callback for component `RNSVGRect` must be a function (received `undefined`).

Environment info

Whatever snack uses.

  • expo: 49.0.0
  • react-native-svg: 13.9.0

Facing similar issue on snack.

Works fine with the following:

  • expo: 48.0.0
  • react-native-svg: 13.4.0

Same issue. Can be fixed using expo v48 but the latest Expo Go app doesn't support v48 anymore.