I use svg in my react-native app next way:
import TestLogo from "../../assets/TestLogo.svg";
<TestLogo />
I use background image in next way:
import background from '../../assets/modules/auth/signUpPattern.png'
<ImageBackground source={background} style={{width: '100%', height: '100%', alignItems: 'center'}}>
If I use the next syntax:
import Background from '../../assets/modules/auth/signUpPattern.svg'
<ImageBackground source={<Background />} style={{width: '100%', height: '100%', alignItems: 'center'}}>
I got empty space, not svg image background, how to fix it?
data:as uri-scheme (like described here) but I doubt that this will work. I've read something that svg doesn't work within `data:'. What's about to paste it as Children and use styling to scale-up it as you need. Have a look at sourcecode of <ImageBackround> shows you, how it's implemented