Boilerplate for React Native.
Assuming you have all the requirements installed, you can setup and run the project by running:
yarn install
to install the dependencies
yarn start
to start the metro bundler, in a dedicated terminalyarn android
to run the Android application (remember to start a simulator or connect an Android phone)
yarn global add react-native-rename
to install the dependecies.npx react-native-rename "RnBase App"
to rename the app.
react-native set-icon --path path-to-image
- Copy your svg files in
./src/assets/svgs/
. - run
yarn icon-components-reload
command. - Add below code in whatever want to use icon
import {IconName} from './src/components/icons'
<View>
<IconName stroke="black" width={24} height={24} />
</View>
This project is released under the MIT License