Yongeza inkxaso yokulayisha imifanekiso ye-svg kwiReact Native

Ibhlog

Yongeza inkxaso yokulayisha imifanekiso ye-svg kwiReact Native

Yongeza inkxaso yokulayisha imifanekiso ye-svg kwiReact Native

phendula-umthonyama-kude-svg

Image Icandelo elixhasa uhlobo lwefayile ye-svg kwi Phendula uNative .

Ukufakwa

Sebenzisa ngaphezu komphakamo wolwandle okanye vulu :

impendulo-yemveli-emoji
$ yarn add react-native-remote-svg

Image Icandelo kwi-reaction-native alikaxhasi uhlobo lwefayile ye-svg. Le phakheji ikunika Image Icandelo elixhasa zombini i-svg kunye.png '> -ngenisa {umfanekiso} ukusuka' ekuphenduleni-okwendalo '+ ukungenisa umfanekiso ukusuka' kwinzalo-yemveli-kude-svg '

kwaye ungalisebenzisa eli candelo loMfanekiso ngendlela oqhele ukwenza ngayo:

import Image from 'react-native-remote-svg'; ;

ixhasa i-uri yedatha ngokunjalo:

import Image from 'react-native-remote-svg'; ;

Phawula: Xa ulayisha umfanekiso kwi-intanethi, kufuneka uchaze ububanzi / ukuphakama komfanekiso (ngokungagqibekanga ukuya kwi-100, 100).

Xa ulayisha umfanekiso wasekhaya, ububanzi / ubude abunyanzelekanga:

Ungalayisha normal.jpg '> yethu tracker yokukhupha kwiGitHub .

Khuphela iinkcukacha:

Umbhali: ukufuna

IGitHub: https://github.com/seekshiva/react-native-remote-svg

# reaction-native #react # mobile-usetyenziso

fxnetworks, com / kusebenze