A simple example app that shows how you can use SVG files in Expo.
The SVG images used in this app can be found from the logos folder.
The .svg
files can be imported inside a React component:
import Logo from "./logo.svg";
The images can then be used as a component:
<Logo width={120} height={40} />
- Install Expo: https://docs.expo.dev/get-started/installation/
git clone git@github.com:kristerkari/react-native-svg-expo-example.git
cd react-native-svg-expo-example
expo install
yarn start
iOS - Android - Web