vault-development / react-native-svg-uri

Render SVG images in React Native from an URL or static file
850 stars 334 forks source link

I am load local svg file but its not proper position. #197

Closed bishwajeet-billme closed 4 years ago

bishwajeet-billme commented 4 years ago

Screenshot_20191022-130043

Here is my code to react-native.

import * as React from 'react'; import { View, StyleSheet, Text } from "react-native"; // import Svg, { SvgUri } from "react-native-svg"; import SvgUri from 'react-native-svg-uri'; import NoBillSvg from '../../Images/svgfile/Telescope.svg'; import NoInternetSvg from "../../I"

export const NoBillFound=()=>{ return(

No Bills Found.
)

}

grp06 commented 4 years ago

@bishwajeet-billme I have this same issue. Did you fix it?

bishwajeet-billme commented 4 years ago

@grp06 yes

import { SvgXml } from 'react-native-svg'; import NoBillSvg from '../../Images/svgfile/Telescope.svg';

SvgXml xml={NoBillSvg} width="60" height="60"

Actually, in svg-uri having issue to render svg file so, Instead of using svgUri, I am using svgXml to render svg file.