~asset react code example
Example 1: add image in react native
<Image
source={{ uri: 'app_icon' }}
style={{ width: 40, height: 40 }}
/>
Example 2: React import image with url
import React from 'react';
import ReactDOM from 'react-dom';
const App: FunctionComponent = () => {
return (
<img src = {this.props.url} alt='something'/>
);
}