Skip to content

Instantly share code, notes, and snippets.

@godswillokokon
Last active March 27, 2020 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godswillokokon/13c0fb53396c3b81661265ae980a006d to your computer and use it in GitHub Desktop.
Save godswillokokon/13c0fb53396c3b81661265ae980a006d to your computer and use it in GitHub Desktop.
import React, { useState } from 'react'
import {
...
} from 'react-native';
const App = () => {
const [photo, setPhoto] = useState('https://res.cloudinary.com/ogcodes/image/upload/v1581387688/m0e7y6s5zkktpceh2moq.jpg');
...
return (
<View>
<View style={styles.imageContainer}>
<Image source={{ uri: photo }} style={styles.backgroundImage}/>
</Image>
</View>
...
</View >
);
};
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment