Please provide the following:
- SDK Version: 34.0.0
- Platforms(Android/iOS/web/all): all
Hi everyone please help, I upgrade SDK version from 32.0.0 to 34.0.0 and after that expo svg doesn’t work anymore. What should I do now
Please provide the following:
Hi everyone please help, I upgrade SDK version from 32.0.0 to 34.0.0 and after that expo svg doesn’t work anymore. What should I do now
Several of Expo’s libraries need to be imported differently in SDK 33 and later compared to how it was done in SDK 32.
e.g. for SVG, instead of this:
import { Svg } from 'expo';
...
<Svg ...>
<Svg.Circle ... />
</Svg>
do:
import Svg, { Circle } from 'react-native-svg';
...
<Svg ...>
<Circle ... />
</Svg>
Check the documentation for the other things you’re importing to see if they have changed too.
EDIT:
One way to help with this is to run:
npx expo-codemod sdk33-imports
You may also need to install new dependencies. e.g.:
expo install expo-constants
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.