An open API service indexing awesome lists of open source software.

https://github.com/ameykuradeak/ntrn

Next JS to React Native Conversion
https://github.com/ameykuradeak/ntrn

cli cli-app nextjs nodejs react-native

Last synced: 9 months ago
JSON representation

Next JS to React Native Conversion

Awesome Lists containing this project

README

          

#

πŸš€ **NTRN v4.1.2 - Professional Next.js to React Native Converter** πŸš€

Typing SVG

```bash
_ _ _____ ____ _ _
| \ | |_ _| _ \| \ | |
| \| | | | | |_) | \| |
| |\ | | | | _ <| |\ |
|_| \_| |_| |_| \_\_| \_|
```

##

🌟 **PROFESSIONAL AI-POWERED CONVERTER** 🌟









## πŸš€ **WHAT'S NEW IN v4.1.2 - EXPO SDK 53 COMPATIBILITY**



🧠 MISTRAL AI + GEMINI

Professional Dual AI System



πŸ“± EXPO SDK 53

Latest React 19 + RN 0.79



🎯 INTELLIGENT ANALYSIS

Deep Project Understanding



πŸ”§ AUTO-FIXING

Smart Error Resolution



βœ… PRODUCTION-READY

Enterprise-Grade Code



πŸš€ INSTANT TESTING

Works with expo start



## 🎯 **CRITICAL UPDATE: EXPO SDK 53 COMPATIBILITY**

πŸš€ IMMEDIATE EXPO GO COMPATIBILITY


Fixed Issue: "Project is incompatible with the version of EXPO Go"


Solution: Updated to Expo SDK 53 for full Expo Go compatibility




πŸ“‹ What Changed:



  • πŸ“¦ Expo SDK: 51 β†’ 53 (Latest)

  • βš›οΈ React: 18.2 β†’ 19.0 (New features)

  • πŸ“± React Native: 0.74.5 β†’ 0.79.0 (Performance boost)

  • 🧭 React Navigation: v6 β†’ v7 (Enhanced APIs)

  • πŸ—οΈ New Architecture: Enabled by default

  • πŸ”§ TypeScript: Updated to 5.8.3




βœ… Immediate Benefits:



  • πŸš€ Works with npx expo start --tunnel immediately

  • πŸ“± Compatible with current Expo Go app

  • πŸ—οΈ Future-proof with New Architecture

  • ⚑ Better performance with React 19

  • πŸ›‘οΈ Production-ready out of the box



## ✨ **PROFESSIONAL FEATURES**

Features



🧠 AI INTELLIGENCE



  • 🎯 Project Structure Analysis

  • πŸ” Technology Stack Detection

  • πŸ—ΊοΈ Strategic Conversion Planning

  • πŸ”§ Auto-Fixing with User Consent



πŸ“± EXPO STRUCTURE



  • πŸ“¦ Expo SDK 53 + React Native 0.79

  • 🧭 React Navigation 7 + New Architecture

  • πŸ“ Complete TypeScript Config

  • 🎨 Mobile-First Components



πŸ—οΈ ARCHITECTURE



  • πŸ“± Pages β†’ Screens Conversion

  • 🌐 API Routes β†’ Services

  • πŸ”— Context Providers Setup

  • πŸ“‚ Professional File Structure



## πŸ€– **INTERACTIVE AI ASSISTANT - POWERED BY MISTRAL AI & GEMINI**

πŸ€– WHAT YOU CAN ASK:



  • "Add a shopping cart screen"

  • "Create user authentication flow"

  • "Fix conversion issues"

  • "Add navigation to screens"

  • "Convert API routes to services"

✨ AI FEATURES:



  • 🎯 Project-aware - Understands your conversion

  • πŸ“± Mobile-optimized - Perfect React Native code

  • πŸ”„ Auto-detection - Finds failed conversions

  • ⚑ Smart fixes - Real-time error resolution

  • πŸ›‘οΈ Safe operations - User consent required

```bash
πŸ€– You: ntrn --prompt
πŸ€– NTRN: Analyzing your project... Found 3 failed conversions!
πŸ€– NTRN: Would you like me to fix them?

πŸ€– You: yes
πŸ€– NTRN: Fixing rate limit issues and syntax errors...
πŸ“„ Fixed: src/screens/ProfileScreen.tsx
πŸ“„ Fixed: src/services/AuthService.ts
βœ… All conversions completed successfully!

πŸ€– You: Add dark mode support
πŸ€– NTRN: Creating theme system...
πŸ“„ Created: src/contexts/ThemeContext.tsx
πŸ“ Modified: App.tsx
βœ… Dark mode ready with toggle functionality!
```



## 🎨 **SHADCN/UI MAGIC CONVERSION**



🌐 BEFORE (Next.js)



πŸ“± AFTER (React Native)

**Next.js Code:**
```tsx
import { Button } from "@/components/ui/button"
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"
import { Input } from "@/components/ui/input"

export function LoginForm() {
return (


Sign In




Sign In



)
}
```

**React Native Code:**
```tsx
import React from 'react';
import { View, Text, TextInput, TouchableOpacity, StyleSheet } from 'react-native';

export function LoginForm() {
return (


Sign In




Sign In



);
}
// + Comprehensive styles automatically generated
```



## ⚑ **INSTALLATION & SETUP**

Requirements

### πŸš€ **Quick Install:**

```bash
# Install globally
npm install -g ntrn@latest

# Or clone and setup
git clone https://github.com/AmeyKuradeAK/ntrn.git
cd ntrn
npm install
npm link
```

### ⚑ **First Time Setup:**

```bash
# Run NTRN - it will guide you through setup
ntrn

# Choose your AI provider (Mistral AI recommended)
# Enter your API key when prompted
# Keys are saved automatically for future use
```

**Requirements:**
1. Node.js 18+ (Latest LTS)
2. Mistral AI API Key (Recommended) or Gemini API Key
3. Expo CLI for testing converted projects



## 🎯 **PROFESSIONAL CONVERSION MODES**

🧠

🧠 PROFESSIONAL AI


ntrn



  • 🎯 Intelligent analysis

  • πŸ”§ Auto-fixing

  • πŸ“± Official Expo structure

  • πŸ—οΈ Production-ready code

🎨

🎨 LEGACY MODE


ntrn --legacy



  • πŸ“ File-by-file conversion

  • πŸ“‚ Directory selection

  • πŸ—οΈ Basic Expo setup

  • πŸ”„ Traditional approach

πŸ€–

πŸ€– AI ASSISTANT


ntrn --prompt



  • πŸ’¬ Interactive AI chat

  • πŸ” Auto-detects issues

  • ⚑ Real-time fixes

  • πŸ› οΈ Project enhancement

### **🎯 Choose Your Workflow:**

**For Professional Conversion (Recommended):**
```bash
cd my-nextjs-app
ntrn # Professional AI conversion
```

**For Interactive Development:**
```bash
ntrn --prompt # AI assistant mode
```

**For Traditional Approach:**
```bash
ntrn --legacy # Legacy file-by-file conversion
```

### **πŸ”„ Switch AI Providers:**
```bash
ntrn --switch-provider # Switch between Mistral AI and Gemini
```

**For AI-Powered Development:**
```bash
cd my-react-native-app
ntrn --prompt # ChatGPT-like assistance
```



## πŸ’° **PRICING & TOKEN USAGE**

Pricing

πŸ“Š PROJECT SIZE
πŸ’° COST RANGE
πŸ“ FILES
⚑ SPEED

πŸ”Ή Small Projects
$0.005-$0.009
5-15 files
⚑ Instant

πŸ”Έ Medium Projects
$0.015-$0.030
20-50 files
⚑⚑ Fast

πŸ”Ά Large Projects
$0.041-$0.088
50-150 files
⚑⚑⚑ Quick

πŸ’Ž Enterprise
$0.119-$0.288
150+ files
πŸš€ Blazing



## πŸ“š **DOCUMENTATION UNIVERSE**

πŸ€–

πŸ€– AI Assistant Guide

Complete ChatGPT-like CLI docs

🎯

🎯 Quality Demo

Enhanced fix verification system

πŸ†

πŸ† Perfect Conversion

100% working React Native examples

🌐

🌐 Web API Guide

Complete web to native conversion

🎨

🎨 Shadcn Guide

Automatic component conversion

πŸ’°

πŸ’° Pricing Guide

Comprehensive cost analysis



## ⚑ **POWERED BY THE BEST**

🧠

Gemini API

πŸ“±

Expo

🌊

NativeWind

βš›οΈ

React Native

❀️

Built with ❀️

## πŸ“Έ **Terminal Demo**


NTRN Demo



## πŸš€ **ROADMAP TO THE FUTURE**

πŸ”§

πŸ”§ Auto Dependency Install

Optional automatic setup

🎨

🎨 Full Tailwind Support

Complete class converter

βš™οΈ

βš™οΈ CLI Config File

Persistent settings

πŸŒ™

πŸŒ™ Dark Mode Everything

README and docs

## 🀝 **CONTRIBUTING**

We love contributions! Please check out our [CONTRIBUTING.md](CONTRIBUTING.md) before submitting a pull request.

**You can:**
- πŸ› Open issues
- 🌟 Suggest new features
- πŸ›  Improve the CLI or documentation



## 🌍 **JOIN THE COMMUNITY**

πŸ—£οΈ

πŸ—£οΈ GitHub Discussions

Ask questions & share ideas

🐦

🐦 X (Twitter)

Follow for updates

πŸ”₯

πŸ”₯ Reddit

Join discussions

## πŸ“« **Stay in Touch**

If you like this project, show some ❀️

- ⭐ Star the repo
- 🐦 Tweet about it
- πŸ“’ Share with your team











---

### πŸš€ **READY TO TRANSFORM YOUR NEXT.JS APP?**

```bash
npm install -g ntrn@latest
cd your-nextjs-project
ntrn
```

CTA

## πŸ“„ **License**

This project is licensed under the **APACHE 2.0 License**.
Do whatever you want, just give credit.

---

### **Made with πŸ’™ by [Amey Kurade](https://www.github.com/AmeyKuradeAK)**

[![Sponsor](https://img.shields.io/badge/Sponsor-πŸ’–-ff69b4?style=for-the-badge)](https://github.com/sponsors/AmeyKuradeAK)