I am using react native 0.73 and trying to use remote svg images. SVG url https://hdor.com/app/assets/images/hdor-2021-icons/badges/bw/25km.svg this is the url which i am trying to use in my application. However it is not working.
Please let me know if i am doing wrong or missing something.
Thank you !! Pawan
import {View, StyleSheet, Image} from 'react-native';
import React from 'react';
import {SvgUri} from 'react-native-svg';
const ShowBadgesUI=({bwBadge})=>{
return (
<View style={{...imageShowStyle.imageContainer}}>
<SvgUri
uri={bwBadge}
onLoad={() => console.log('alkdkasj')}
style={{
width: 50,
height: 50,
backfaceVisibility: 'hidden',
}}
/>
</View>
);
};
export default ShowBadgesUI;
width="100%"andheight="100%"? 3) Have you tried putting the url in as a static string instead of a variable? 4) Is theShowBadgesUIcomponent definitely being displayed on the UI?