-
-
Save godswillokokon/13c0fb53396c3b81661265ae980a006d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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