Created
February 26, 2021 18:04
-
-
Save hayanisaid/072af69a947caefe4625bf0cfc172482 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 {SvgXml} from 'react-native-svg'; | |
import SVGImage from './images/undraw_happy_2021_h01d.svg'; | |
const App: () => React$Node = () => { | |
return ( | |
<> | |
<View style={styles.container}> | |
<StatusBar barStyle="dark-content" /> | |
<SafeAreaView> | |
<ScrollView> | |
<SvgXml width="200" height="200" xml={SVGImage} /> | |
</ScrollView> | |
</SafeAreaView> | |
</View> | |
</> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment