Created
October 18, 2020 23:30
-
-
Save trooperandz/041da36ed0ec0d9b797c22a4bccc0ae5 to your computer and use it in GitHub Desktop.
React Native svg usage example
This file contains hidden or 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 from 'react'; | |
| import { View } from 'react-native'; | |
| import MyIcon from 'src/assets/my-svg-icon.svg'; | |
| export default ExampleIcon = () => ( | |
| <View> | |
| <MyIcon width={48} height={48} fill="#000" /> | |
| </View> | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment