react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

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

Open chriscoomber opened this issue 1 year ago • 2 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

chriscoomber avatar Jan 29 '24 17:01 chriscoomber

Facing similar issue on snack.

Works fine with the following:

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

khusharth avatar Feb 13 '24 18:02 khusharth

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

sospedra avatar Feb 15 '24 16:02 sospedra

Hello, @chriscoomber @khusharth @sospedra, If you run that on expo go you have to use the last version of expo sdk.

bohdanprog avatar Jun 12 '24 11:06 bohdanprog