_ _ _____ ____ _ _
| \ | |_ _| _ \| \ | |
| \| | | | | |_) | \| |
| |\ | | | | _ <| |\ |
|_| \_| |_| |_| \_\_| \_|
Effortlessly convert your Next.js App Router project into a fully functional React Native Expo app using this zero-config CLI tool.
- ⚡️ Instantly converts your Next.js
app/
directory to React Native screens - 📦 Transforms
layout.tsx
intoApp.tsx
- 🎯 Handles
page.tsx
and routes into Expo-compatible screens - 🧠 Powered by Gemini API for JSX → React Native conversion
- 🎨 Tailwind CSS support via NativeWind
- 🗂 Creates React Native standard structure (screens, assets, etc.)
- 📋 Outputs required dependencies in
requirements.txt
You will require:
- Node JS
- Gemini API
- clone repo from GitHub.
Process to work on.
- Update .env file from project
npm link
npm install -g ntrn
After installing and setting up repo and .env
to update the ntrn
npm link
ntrn
Run this command inside the root of your Next.js App Router project.
It will generate a complete Expo React Native app inside converted-react-native/
.
From (Next.js) | To (React Native) |
---|---|
app/layout.tsx |
App.tsx |
app/page.tsx |
screens/HomeScreen.tsx |
public/ |
assets/ |
@/components/* |
Preserved and reused |
ntrn --help
Option | Description |
---|---|
--version |
Show CLI version |
--convert |
Convert app/ directory to React Native |
--tailwind |
Enable Tailwind detection (NativeWind auto) |
- Gemini API
- Expo
- NativeWind
- React Native
- Built with ❤️ for developers
- [ ] Automatic dependency installation (optional)
- [ ] Tailwind class converter (full support)
- [ ] CLI config file support
- [ ] Auto-detect
pages/
routing fallback - [ ] Dark mode README and Docs
We love contributions!
Please check out our CONTRIBUTING.md before submitting a pull request.
You can:
- Open issues 🐛
- Suggest new features 🌟
- Improve the CLI or documentation 🛠
Join discussions, ask questions, and share ideas:
- GitHub Discussions
- Twitter (Formarly known as X) (mention us!)
If you like this project, show some ❤️
- ⭐ Star the repo
- 🐦 Tweet about it
- 📢 Share with your team
This project is licensed under the APACHE 2.0 License.
Do whatever you want, just give credit.