Installation guide
Learn how to install and configure our React Native templates and integrating them into your projects. Follow our step-by-step guide to ensure proper setup and compatibility with apps.
To use our templates you need to Unlock your access →
Prerequisites
Before installing the templates, make sure you have:
- Completed the components installation guide
- Ensured that all components are downloaded and present in your project
Our templates require the following minimum dependency versions:
- Expo Router 5+
- React 19+
- React Native 0.79+
- Node.js 22+
- TypeScript 5.3+
These versions ensure compatibility with our template features. We recommend using the latest stable versions within these major versions.
Although our templates are designed using Expo Router for the navigation, you can modify them to work with the navigation library of your choice.
Project Configuration
Using Expo? Great! You can skip this section since Expo handles these configurations automatically.
To use our templates effectively, you'll need to set up path aliases. These make your imports cleaner and easier to manage. Here's what you need to do:
1. Configure TypeScript
First, let's set up TypeScript to understand our path aliases. Add this to your tsconfig.json
:
2. Configure Babel
Next, update your Babel configuration to support:
- Path aliases for cleaner imports
- React Native Reanimated animations
Add these settings to your babel.config.json
:
Add templates to your project
Now we'll walk through the process of integrating the templates into your codebase:
1. Copy the template files
- Visit the craftrn-templates repository
- Download the templates you want to use
- Create a new folder called
craftrn-templates
at the root of your project - Copy the downloaded templates into this folder
2. Set up the routes
- If you're using Expo Router:
- Visit the app folder in the repository
- Copy the folder for your chosen templates
- Paste them into your project's
app
folder
- If you're using a different navigation library:
- You'll need to adapt the routing logic to match your navigation setup
- You can them import each screen individually from the
craftrn-templates
folder
Your project structure should look like this when using Expo:
Quick start
Get started with pre-built React Native app templates. Run the demo app locally to explore complete screen implementations, copy code snippets, and accelerate your development workflow.
Discussions
A discussion interface that displays conversations and AI chats, allows typing messages, and includes features like archiving and deleting discussions.