<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amey Kurade</title>
    <description>The latest articles on DEV Community by Amey Kurade (@ameykuradeak).</description>
    <link>https://dev.to/ameykuradeak</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1118337%2Ffde704ba-a285-4af6-917d-d80baf00a6b1.jpeg</url>
      <title>DEV Community: Amey Kurade</title>
      <link>https://dev.to/ameykuradeak</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ameykuradeak"/>
    <language>en</language>
    <item>
      <title>🚀Convert Next.js to React Native with a Single CLI Command — Meet `ntrn`</title>
      <dc:creator>Amey Kurade</dc:creator>
      <pubDate>Mon, 07 Apr 2025 07:29:22 +0000</pubDate>
      <link>https://dev.to/ameykuradeak/convert-nextjs-to-react-native-with-a-single-cli-command-meet-ntrn-4689</link>
      <guid>https://dev.to/ameykuradeak/convert-nextjs-to-react-native-with-a-single-cli-command-meet-ntrn-4689</guid>
      <description>&lt;p&gt;Hey devs! 👋&lt;br&gt;&lt;br&gt;
Ever wished you could &lt;strong&gt;take your Next.js project and turn it into a working React Native Expo app&lt;/strong&gt; without starting from scratch?&lt;/p&gt;

&lt;p&gt;Well, I did too — so I built &lt;strong&gt;&lt;a href="https://github.com/AmeyKuradeAK/ntrn" rel="noopener noreferrer"&gt;&lt;code&gt;ntrn&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt; ✨&lt;br&gt;&lt;br&gt;
A developer-friendly CLI that transforms your &lt;strong&gt;Next.js App Router project&lt;/strong&gt; into a complete mobile app.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 What is &lt;code&gt;ntrn&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;ntrn&lt;/code&gt; is an open-source CLI that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🔁 Converts &lt;code&gt;app/&lt;/code&gt; directory routes from Next.js into &lt;code&gt;screens/&lt;/code&gt; for React Native
&lt;/li&gt;
&lt;li&gt;🧠 Transforms &lt;code&gt;layout.tsx&lt;/code&gt; into a clean &lt;code&gt;App.tsx&lt;/code&gt; root for RN
&lt;/li&gt;
&lt;li&gt;🪄 Uses the &lt;strong&gt;Gemini API&lt;/strong&gt; to rewrite your JSX into React Native components
&lt;/li&gt;
&lt;li&gt;🎨 Supports Tailwind to NativeWind automatically
&lt;/li&gt;
&lt;li&gt;📦 Detects required packages and exports them into a &lt;code&gt;requirements.txt&lt;/code&gt; for quick setup
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s like giving your web app a passport to the mobile world 🌍📱&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ How it Works
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ntrn convert
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Creates a new Expo React Native app
&lt;/li&gt;
&lt;li&gt;Copies &amp;amp; converts your Next.js pages into RN screens
&lt;/li&gt;
&lt;li&gt;Transforms layout into an &lt;code&gt;App.tsx&lt;/code&gt; entry point
&lt;/li&gt;
&lt;li&gt;Keeps external component imports (&lt;code&gt;@/components&lt;/code&gt; etc.)
&lt;/li&gt;
&lt;li&gt;Outputs necessary dependencies
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The goal? Make it feel like a native project you wrote by hand — with minimal lift.&lt;/p&gt;




&lt;h2&gt;
  
  
  ✨ Why I Built This
&lt;/h2&gt;

&lt;p&gt;As a web developer, I love building in Next.js. But when I wanted to reuse the same structure for a mobile app, there wasn’t an easy way — it felt like starting from zero.&lt;/p&gt;

&lt;p&gt;So I thought:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Why not automate the conversion from Next.js to React Native?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ntrn&lt;/code&gt; was born from that idea — a tool for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fullstack devs who want to go cross-platform
&lt;/li&gt;
&lt;li&gt;Indie hackers launching MVPs on both web and mobile
&lt;/li&gt;
&lt;li&gt;Anyone tired of copy-pasting JSX and rewriting layouts
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📦 Try it Out
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ntrn convert
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or clone it from GitHub:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/AmeyKuradeAK/ntrn" rel="noopener noreferrer"&gt;https://github.com/AmeyKuradeAK/ntrn&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  📸 (Optional) Demo GIF or Screenshot
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Include a quick GIF showing the CLI in action, if you have one&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🙏 Looking for Feedback &amp;amp; Contributors
&lt;/h2&gt;

&lt;p&gt;Would love to hear your thoughts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is this useful for your workflow?
&lt;/li&gt;
&lt;li&gt;What’s missing or confusing?
&lt;/li&gt;
&lt;li&gt;Want to contribute?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The repo is open to issues, PRs, and stars ⭐️&lt;br&gt;&lt;br&gt;
Every bit of support means a lot!&lt;/p&gt;




&lt;p&gt;Thanks for reading! If this helped or inspired you, feel free to drop a ❤️ or share it with someone building fullstack apps!&lt;/p&gt;

&lt;p&gt;Let’s build cool stuff,&lt;br&gt;&lt;br&gt;
&lt;strong&gt;~ Amey Kurade&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
