React Native
Install and configure dependencies for React Native
If you use Expo, please follow this guide instead. This guide applies to vanilla React Native apps only.
Configure path aliases
- Install
babel-plugin-module-resolverplugin:
- Edit
babel.config.jsfile
- Edit
tsconfig.jsonfile
Configure fonts
- Download the Inter font from here: https://rsms.me/inter/
- Copy the
Inter-Regular.ttf,Inter-Medium.ttf,Inter-SemiBold.ttf,Inter-Bold.ttfandInterDisplay-ExtraBold.ttffiles from thettffolder and paste them in theassets/fontsfolder. - Edit
react-native.config.jsfile:
- Link the fonts.
Setup Icons
- Add
Iconcomponent.
- To use the icon packages, run:
- Open
ios/AppName/Info.plistand verify that the property called Fonts provided by application (or UIAppFonts if opening the file in a text editor) is present and contains the expected entries. For example:
Setup Reanimated
- Add
react-native-reanimated/pluginplugin to yourbabel.config.js.
Caution
react-native-reanimated/plugin has to be listed last.- Wrap your existing Metro configuration in the
metro.config.jsfile with thewrapWithReanimatedMetroConfigfunction.
Note
If you are facing any issues with Reanimated, please check the Reanimated docs.
All Set!
You can now start adding components to your app.