I am using react-native-svg for handling SVG but i am noticing a delay when switching to a stack/screen that contains SVG. I am using a tabBar in react-navigation 6 to switch stacks/screens.
When i have SVG in the screen as below i can notice a small delay of around 0,5-1s before the stack/screen shows up. If i remove all SVG it switches just fine with 0s delay.
I have tried with react-native-svg-transformer but the delay just increases.
I have around 10 SVG:s as below in one screen.
import { WithLocalSvg } from 'react-native-svg';
<WithLocalSvg width="28" height="28" style={{position:'absolute', top:16, left:0, transform: [{ rotate: '12deg' }]}} asset={require("../../images/svg_source.svg")} />
Any tips or ideas are welcome. Maybe there is another way to work with SVG in react-native?