vault-development / react-native-svg-uri

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

The componentWillReceiveProps() method is deprecated in ReactNative Current #199

Open djasc1993 opened 4 years ago

djasc1993 commented 4 years ago

The componentWillReceiveProps() method is being deprecated in ReactNative Current

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

donni106 commented 4 years ago

https://github.com/react-native-community/react-native-svg can be used. They have implemented various components, i.e. SvgUri https://github.com/react-native-community/react-native-svg#use-with-content-loaded-from-uri or SvgXml https://github.com/react-native-community/react-native-svg#use-with-xml-strings