snacks (from expo) with react-native-svg crash on native
chriscoomber opened this issue · comments
chriscoomber commented
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
Khusharth Patani commented
Facing similar issue on snack.
Works fine with the following:
expo
:48.0.0
react-native-svg
:13.4.0
Rubén Sospedra commented
Same issue. Can be fixed using expo v48 but the latest Expo Go app doesn't support v48 anymore.