Skip to content

Instantly share code, notes, and snippets.

@hayanisaid
Created February 26, 2021 18:04
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 hayanisaid/072af69a947caefe4625bf0cfc172482 to your computer and use it in GitHub Desktop.
Save hayanisaid/072af69a947caefe4625bf0cfc172482 to your computer and use it in GitHub Desktop.
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