<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chandanvijayadeva Cv on Medium]]></title>
        <description><![CDATA[Stories by Chandanvijayadeva Cv on Medium]]></description>
        <link>https://medium.com/@chandanvijayadeva.cv?source=rss-ada9c187dba3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bQzISkYBD-P3syse</url>
            <title>Stories by Chandanvijayadeva Cv on Medium</title>
            <link>https://medium.com/@chandanvijayadeva.cv?source=rss-ada9c187dba3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:27:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chandanvijayadeva.cv/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Turn Your NVIDIA Laptop Into a Local AI Coding Assistant]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/how-to-turn-your-nvidia-laptop-into-a-local-ai-coding-assistant-74cca8bbb859?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/74cca8bbb859</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 07:51:10 GMT</pubDate>
            <atom:updated>2026-09-30T07:51:10.824Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z1XHOGUUe9gabjNq" /><figcaption>How to Turn Your NVIDIA Laptop Into a Local AI Coding Assistant</figcaption></figure><p>Inside Local AI · By <a href="https://medium.com/@chandanvijayadeva.cv">@learnwithchandu</a> · Practical guide · 6-minute read</p><p>You don’t need to build an AI model from scratch to use your NVIDIA GPU. You can install a local model runtime, download a compatible model, and connect it to your applications.</p><p>Let’s build the simplest version first.</p><h3>1. Install a local AI runtime</h3><p>For this experiment, we’ll use Ollama. It runs language models locally and provides an API that other applications can call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/0*Hv6AXvpXfNroR15b" /></figure><p>Download it from the official website: <a href="https://ollama.com/download/windows">Download Ollama for Windows</a></p><p>After installation, open PowerShell and verify it:</p><pre>ollama --version</pre><h3>2. Download and run a model</h3><p>For a laptop with an RTX 3050 and 6 GB of VRAM, begin with a smaller model rather than jumping straight to a large one.</p><p>Try Qwen3 4B:</p><pre>ollama run qwen3:4b</pre><p>The first run downloads the model. Once it starts, enter a prompt:</p><pre>Explain this React Native error and suggest<br>three possible causes.</pre><p>You now have a local language model that can generate answers without sending that prompt to a cloud model provider.</p><h3>3. Confirm that your NVIDIA GPU is being used</h3><p>Open a second PowerShell window:</p><pre>nvidia-smi -l 1</pre><p>Watch the GPU memory and utilization while the model generates a response. You can also run:</p><pre>ollama ps</pre><p>This helps you inspect the loaded model and its processing placement. Actual GPU usage depends on the model, available memory, runtime, and system configuration.</p><h3>Experiment Results</h3><p>During the experiment, I monitored the GPU while running <strong>Qwen3:4B locally through Ollama</strong>:</p><ul><li><strong>GPU:</strong> NVIDIA GeForce RTX 3050 Laptop GPU</li><li><strong>Total VRAM:</strong> 6 GB (6144 MiB)</li><li><strong>VRAM used:</strong> 4258 MiB (~4.26 GB)</li><li><strong>GPU utilization:</strong> 97%</li><li><strong>GPU temperature:</strong> 57°C</li><li><strong>Power usage:</strong> 49W / 50W</li><li><strong>Model:</strong> Qwen3:4B</li><li><strong>Model memory footprint:</strong> ~3.9 GB</li><li><strong>Inference:</strong> Running primarily on the GPU through Ollama / llama-server</li></ul><p><strong>Key observation:</strong> The Qwen3:4B model was able to run locally with roughly <strong>4.26 GB of GPU VRAM in use</strong>, with GPU utilization reaching <strong>97%</strong> during inference.</p><h3>4. Connect your own application</h3><p>This is where the experiment becomes useful for developers.</p><p>Ollama exposes a local HTTP API, so your own app can send it prompts and receive responses.</p><p>For example, create a small Node.js script:</p><pre>const response = await fetch(<br>  &quot;http://localhost:11434/api/chat&quot;,<br>  {<br>    method: &quot;POST&quot;,<br>    headers: {<br>      &quot;Content-Type&quot;: &quot;application/json&quot;,<br>    },<br>    body: JSON.stringify({<br>      model: &quot;qwen3:4b&quot;,<br>      stream: false,<br>      messages: [<br>        {<br>          role: &quot;user&quot;,<br>          content:<br>            &quot;Explain React Native useEffect with an example&quot;,<br>        },<br>      ],<br>    }),<br>  }<br>);</pre><pre>const data = await response.json();<br>console.log(data.message.content);</pre><p>Run it with a recent Node.js version:</p><pre>node app.js</pre><p>Your application now calls a model running on your own machine.</p><h3>5. Connect it to your coding workflow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*XbZiMkmQDAWcIK72" /></figure><p>You can take this further by connecting a local model to a coding assistant that supports custom model providers or Ollama. For example, compatible editor extensions can send coding questions to your local runtime instead of a cloud model.</p><p>Start with simple tasks:</p><ul><li>Explain a selected function.</li><li>Generate unit tests.</li><li>Suggest a refactoring.</li><li>Help diagnose an error message.</li><li>Draft documentation.</li></ul><p>The exact integration depends on the extension and the features it supports. Some editor features may still require cloud services.</p><h3>6. Add image generation separately</h3><p>A language model and an image-generation model are different workloads.</p><p>For local image generation, explore ComfyUI: <a href="https://www.comfy.org/">Explore ComfyUI</a></p><p>ComfyUI lets you construct workflows around compatible image models. You can use it to create blog illustrations, thumbnails, concept art, and other visual assets. Check the model’s memory requirements before downloading it: 6 GB of VRAM can be restrictive for demanding image workflows.</p><h3>7. Build a local-first AI system</h3><p>Once the basic experiment works, you can create a simple gateway between your applications and different AI providers.</p><pre>VS Code / Your App<br>        |<br>        v<br>   AI Gateway<br>        |<br>        +----&gt; Local Ollama model<br>        |        |<br>        |        v<br>        |     NVIDIA GPU<br>        |<br>        +----&gt; Cloud AI API<br>                 (optional fallback)<br><br>Image-generation requests<br>        |<br>        v<br>    ComfyUI</pre><p>Your gateway can route suitable tasks locally and send more demanding requests to a cloud provider when configured to do so. MCP can add access to tools such as files, Git, databases, and APIs, but it does not itself run the language model.</p><p>Keep the local API bound to your own machine unless you have deliberately configured authentication and network security.</p><h3>Final thoughts</h3><p>Start with one model, one prompt, and one measured result. Confirm that the model works, check whether the GPU is being used, and then connect it to a real coding task.</p><p>After that, add editor integration, image generation, tool access, and optional cloud fallback one step at a time.</p><p>The objective isn’t to replace every AI service immediately. It’s to learn what your own hardware can do and build a practical workflow around it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74cca8bbb859" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What If Your NVIDIA GPU Could Power Your Own AI Assistant?]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/what-if-your-nvidia-gpu-could-power-your-own-ai-assistant-52f7d2df7e1d?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/52f7d2df7e1d</guid>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 07:32:59 GMT</pubDate>
            <atom:updated>2026-09-30T07:32:59.206Z</atom:updated>
            <content:encoded><![CDATA[<p>Inside Local AI · By <a href="https://medium.com/@chandanvijayadeva.cv">@learnwithchandu </a>· 5-minute read</p><h3>What if your laptop could help you write code, explain errors, and generate images without sending every request to a cloud AI service?</h3><p>Most of us use AI tools through websites or subscriptions. We type a question, wait for a response, and receive an answer from a model running on someone else’s servers.</p><p>But there is another option: run an AI model locally on your own computer.</p><p>If your laptop has an NVIDIA GPU, you already have hardware that may be capable of running certain AI models.</p><h3>1. How does local AI work?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7K_RFmcBq3C_3n-r" /></figure><p>Think of an AI model as a program that has learned patterns from data. When you ask it a question, the model processes your input and generates a response.</p><p>Instead of sending the request to a remote server, local AI runs the model on your machine.</p><pre>Your question<br>     ↓<br>Local AI application<br>     ↓<br>Model runtime (Ollama, llama.cpp)<br>     ↓<br>AI model<br>     ↓<br>NVIDIA GPU + CUDA<br>     ↓<br>Generated response</pre><p>NVIDIA GPUs are useful because they can perform many of the mathematical operations used by AI models in parallel.</p><p>CUDA is NVIDIA’s GPU computing platform that compatible AI runtimes can use to accelerate those operations.</p><h3>2. What can you do with it?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3havnMTQ-eIoLiFE_ChSw.png" /><figcaption>What can you do with it?</figcaption></figure><p>The important distinction is that these capabilities do not all come from one model. Code assistance, image generation, speech recognition, and video generation often require different models and runtimes.</p><h3>3. Why does GPU memory matter?</h3><p>Your GPU has a limited amount of video memory, or VRAM. The model’s weights, context, and other working data need memory while it runs.</p><p>A smaller, quantized model can use less memory, often with some trade-off in output quality. Larger models may need more VRAM, system RAM, or a combination of CPU and GPU processing.</p><p>This is why a laptop with 6 GB of VRAM can be useful for experimenting with smaller language models, but may struggle with larger models and demanding image or video workflows.</p><h3>4. Is local AI completely free?</h3><p>Not exactly.</p><p>You may avoid recurring cloud inference charges for tasks handled locally, but you still pay for electricity, hardware, storage, and your time. Some models and applications also have their own licenses or usage conditions.</p><p>Local AI is particularly interesting when you want to experiment frequently, keep certain data on your own machine, or build tools around a model you control.</p><h3>5. Where do ChatGPT, Claude, and MCP fit?</h3><p>Local AI does not mean you have installed ChatGPT or Claude themselves. You are running a separate model, often an open-weight model, on your own hardware.</p><p>You can integrate local models with coding tools and custom applications. You can also connect models to tools using Model Context Protocol (MCP).</p><p>A simple way to remember the distinction:</p><ul><li>GPU: Where the computation happens.</li><li>Model: What generates the response.</li><li>Runtime: What loads and executes the model.</li><li>MCP: How an AI application can access tools and data.</li></ul><p>The pieces work together, but they solve different problems.</p><h3>The bigger idea</h3><p>A local AI setup can begin as one model on one laptop. Over time, you can add code-editor integration, image generation, custom tools, and cloud fallback for tasks that exceed your hardware’s capabilities.</p><p>The goal is not necessarily to replace every cloud AI service. It is to understand which tasks you can run locally and build a workflow around them.</p><p>Next article: How to Connect Your NVIDIA GPU to Your Coding Workflow and AI Tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52f7d2df7e1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Actually Happens Inside EAS Build?]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/what-actually-happens-inside-eas-build-f031bc4409f3?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f031bc4409f3</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 06:42:46 GMT</pubDate>
            <atom:updated>2026-09-15T06:43:55.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*91WvAxCdMQSu0TqPWzWGkg.png" /><figcaption>What Actually Happens Inside EAS Build?</figcaption></figure><h3>Inside React Native — Chapter 27</h3><h3>Your Code → Build Profile → Prebuild → Credentials → Gradle/Xcode → Signed App</h3><p>In Chapter 26, we followed this command:</p><pre>npx expo prebuild</pre><p>and discovered that Expo can turn:</p><pre>App Config<br>+<br>Dependencies<br>+<br>Config Plugins<br>      ↓<br>   Prebuild<br>      ↓<br>android/ + ios/</pre><p>into <strong>real native projects</strong>.</p><p>But those folders still aren’t an application your users can install.</p><p>We still need something to take the native projects and produce:</p><pre>Android → APK / AAB<br>iOS     → IPA</pre><p>This is where <strong>EAS Build</strong> enters.</p><p>At first, EAS Build can feel like:</p><pre>My Code<br>   ↓<br>Expo Cloud ☁️<br>   ↓<br>APK / IPA</pre><p>But that’s too magical.</p><p>The more useful mental model is:</p><pre>YOUR PROJECT<br>     ↓<br>EAS BUILD<br>     ↓<br>Prepare Build Environment<br>     ↓<br>Generate Native Project if needed<br>     ↓<br>Configure Credentials<br>     ↓<br>Gradle / Xcode<br>     ↓<br>Sign Binary<br>     ↓<br>AAB / APK / IPA</pre><p>And there’s one important idea to understand immediately:</p><blockquote><strong><em>EAS Build orchestrates the build. Gradle and Xcode still perform the actual native compilation.</em></strong></blockquote><p>Let’s follow the complete journey.</p><h3>1. Everything Starts With eas build</h3><p>Imagine our Expo project is ready.</p><p>We run:</p><pre>eas build</pre><p>or explicitly:</p><pre>eas build --platform android</pre><p>For iOS:</p><pre>eas build --platform ios</pre><p>We can also request both:</p><pre>eas build --platform all</pre><p>EAS CLI now needs to answer several questions:</p><pre>Which platform?</pre><pre>Which build configuration?</pre><pre>Which credentials?</pre><pre>Which environment?</pre><pre>What native project should be compiled?</pre><p>The first important file is therefore:</p><h3>eas.json</h3><h3>2. eas.json Defines the Build Profile</h3><p>A typical project might contain:</p><pre>{<br>  &quot;build&quot;: {<br>    &quot;development&quot;: {<br>      &quot;developmentClient&quot;: true,<br>      &quot;distribution&quot;: &quot;internal&quot;<br>    },</pre><pre>    &quot;preview&quot;: {<br>      &quot;distribution&quot;: &quot;internal&quot;<br>    },</pre><pre>    &quot;production&quot;: {}<br>  }<br>}</pre><p>Now we have three different intentions:</p><pre>development<br>    ↓<br>Developer Build</pre><pre>preview<br>    ↓<br>Internal Testing</pre><pre>production<br>    ↓<br>Store Build</pre><p>We choose one:</p><pre>eas build --profile production</pre><p>Conceptually:</p><pre>eas build<br>    ↓<br>eas.json<br>    ↓<br>production<br>    ↓<br>Resolve Build Configuration</pre><p>The profile can influence things such as build type, distribution, environment and development-client behavior.</p><p>So think:</p><blockquote><strong><em>eas.json describes how I want this build to be produced.</em></strong></blockquote><h3>3. EAS Collects Your Project</h3><p>For a cloud build, your project needs to reach the EAS build infrastructure.</p><p>Conceptually:</p><pre>Local Project<br>      ↓<br>EAS CLI<br>      ↓<br>Prepare Project Archive<br>      ↓<br>Upload<br>      ↓<br>EAS Build Infrastructure</pre><p>The build service doesn’t magically access your laptop.</p><p>It works with the project that has been prepared and uploaded for the build.</p><p>This also means we should think carefully about what belongs in the build context.</p><p>Files excluded through relevant ignore configuration won’t necessarily reach the builder.</p><h3>4. EAS Creates the Build Environment</h3><p>Now imagine a fresh build machine.</p><p>It needs the tooling required for the target platform.</p><p>For Android, think:</p><pre>Linux Build Environment<br>        ↓<br>Node<br>Java<br>Android SDK<br>Gradle</pre><p>For iOS:</p><pre>macOS Build Environment<br>        ↓<br>Node<br>Xcode<br>CocoaPods</pre><p>The exact images and versions depend on the build configuration and supported EAS build images.</p><p>Conceptually:</p><pre>Your Code<br>   ↓<br>Fresh Build Machine<br>   ↓<br>Install / Restore Dependencies<br>   ↓<br>Prepare Native Build</pre><p>This is important because:</p><blockquote><strong><em>A cloud build should not depend on some random configuration that exists only on your laptop.</em></strong></blockquote><p>If the project builds locally only because of an undocumented local modification, CI usually exposes that problem very quickly.</p><h3>5. Dependencies Are Installed</h3><p>Next, the project dependencies need to be available.</p><p>Think:</p><pre>package.json<br>     +<br>Lockfile<br>     ↓<br>Install JS Dependencies<br>     ↓<br>node_modules</pre><p>The lockfile matters because we generally want:</p><pre>Developer Machine<br>       ↓<br>Same Dependency Versions<br>       ↓<br>Build Server</pre><p>rather than:</p><pre>&quot;It worked yesterday...&quot;</pre><p>because a transitive dependency silently changed.</p><p>Reproducibility matters.</p><h3>6. Does android/ or ios/ Exist?</h3><p>Now we reconnect Chapter 26.</p><p>Suppose our project uses CNG and the repository contains:</p><pre>app/<br>assets/<br>app.json<br>package.json</pre><p>but not:</p><pre>android/<br>ios/</pre><p>How can EAS run Gradle or Xcode?</p><p>It needs native projects first.</p><p>Conceptually:</p><pre>Native directories missing?<br>          ↓<br>         YES<br>          ↓<br>      PREBUILD<br>          ↓<br>Generate android/ + ios/</pre><p>This is where Expo configuration and config plugins become extremely important.</p><p>Our pipeline becomes:</p><pre>app.json<br>+<br>package.json<br>+<br>Config Plugins<br>      ↓<br>Prebuild<br>      ↓<br>android/ + ios/<br>      ↓<br>Native Build</pre><p>That’s why Chapter 26 matters before understanding EAS Build.</p><h3>🧠 Pause &amp; Think</h3><p>Suppose your project doesn’t commit:</p><pre>android/<br>ios/</pre><p>Yet EAS successfully produces an Android AAB.</p><p>Where did the Android project come from?</p><p>Not from nowhere.</p><p>The mental model is:</p><pre>Expo Configuration<br>       ↓<br>Prebuild / CNG<br>       ↓<br>Generated Android Project<br>       ↓<br>Gradle<br>       ↓<br>AAB</pre><p>EAS Build is orchestrating these stages.</p><h3>7. Config Plugins Run During Generation</h3><p>Suppose our project uses:</p><pre>expo-camera<br>expo-notifications<br>expo-location</pre><p>and configuration like:</p><pre>{<br>  &quot;expo&quot;: {<br>    &quot;plugins&quot;: [<br>      &quot;expo-camera&quot;,<br>      &quot;expo-notifications&quot;<br>    ]<br>  }<br>}</pre><p>During Prebuild, those plugins can modify the generated native project.</p><p>Conceptually:</p><pre>Config Plugins<br>      ↓<br>Prebuild<br>      ↓<br>AndroidManifest.xml<br>Info.plist<br>Native Configuration</pre><p>So EAS Build benefits from the same reproducible native configuration model we learned about in Chapter 26.</p><h3>8. Now We Reach Credentials</h3><p>This is where native mobile builds become different from ordinary JavaScript builds.</p><p>Producing code isn’t enough.</p><p>The application must be <strong>signed</strong>.</p><p>For Android, we commonly deal with:</p><pre>Keystore<br>   ↓<br>Signing Key<br>   ↓<br>Signed APK / AAB</pre><p>For iOS:</p><pre>Distribution Certificate<br>        +<br>Provisioning Profile<br>        ↓<br>Signed iOS Application</pre><p>Why?</p><p>Because the operating system and app stores need to establish:</p><blockquote><strong><em>Who produced this application, and is this a valid continuation of the application already installed/published?</em></strong></blockquote><p>Signing identity matters enormously.</p><h3>Android Signing Mental Model</h3><p>Imagine we publish:</p><pre>com.learnwithchandu.roova</pre><p>The first release is signed with:</p><pre>KEY A</pre><p>Future releases must participate in the appropriate signing setup expected for that application.</p><p>Conceptually:</p><pre>App Bundle<br>    +<br>Signing Identity<br>    ↓<br>Signed AAB</pre><p>Lose control of the required signing credentials and releases can become painful.</p><p>That’s why credentials aren’t just another config file.</p><p>They’re security assets.</p><h3>iOS Signing Mental Model</h3><p>iOS adds more pieces.</p><p>A simplified model:</p><pre>Application<br>     +<br>Bundle Identifier<br>     +<br>Certificate<br>     +<br>Provisioning Profile<br>     ↓<br>Signed IPA</pre><p>Apple’s signing ecosystem can initially feel complicated because several identities and permissions need to line up.</p><p>EAS can help manage much of this credential workflow.</p><p>But underneath, it is still <strong>Apple’s native code-signing system</strong>.</p><p>Expo didn’t invent iOS signing.</p><p>It automates parts of working with it.</p><h3>9. Environment Variables and Secrets Enter the Build</h3><p>Real applications usually need configuration such as:</p><pre>API_URL<br>Environment name<br>Service configuration<br>Build-specific values</pre><p>For example:</p><pre>Preview<br>   ↓<br>https://staging-api.example.com<br></pre><pre>Production<br>   ↓<br>https://api.example.com</pre><p>Build profiles and EAS environment configuration can help provide the appropriate values to the build.</p><p>Conceptually:</p><pre>Build Profile<br>      +<br>Environment<br>      +<br>Project<br>      ↓<br>Configured Native Build</pre><p>But here’s an important security distinction:</p><blockquote><strong><em>Anything shipped into client-side JavaScript/native application code should not be treated as a permanent secret merely because it came from an environment variable.</em></strong></blockquote><p>A determined user can inspect a mobile application.</p><p>True server secrets belong on your backend.</p><h3>10. Android: Gradle Takes Over</h3><p>Eventually EAS reaches the actual Android compilation.</p><p>This is where:</p><h3>Gradle</h3><p>takes over.</p><p>Conceptually:</p><pre>React Native Project<br>       ↓<br>Android Native Project<br>       ↓<br>Gradle<br>       ↓<br>Compile Native Code<br>       ↓<br>Bundle JS + Assets<br>       ↓<br>Package Application<br>       ↓<br>Sign<br>       ↓<br>APK / AAB</pre><p>Gradle coordinates the Android build system.</p><p>It compiles native Android code, processes resources, runs build tasks and produces Android artifacts.</p><p>So if someone asks:</p><blockquote><em>“Does EAS replace Gradle?”</em></blockquote><p>The answer is:</p><h3>No.</h3><p>Think:</p><pre>EAS Build<br>   ↓<br>ORCHESTRATES</pre><pre>Gradle<br>   ↓<br>BUILDS AND PACKAGES ANDROID</pre><h3>11. iOS: Xcode Takes Over</h3><p>The same principle applies on iOS.</p><p>Conceptually:</p><pre>React Native Project<br>       ↓<br>iOS Native Project<br>       ↓<br>CocoaPods / Native Dependencies<br>       ↓<br>Xcode Build System<br>       ↓<br>Compile<br>       ↓<br>Link<br>       ↓<br>Sign<br>       ↓<br>IPA / Archive</pre><p>Again:</p><pre>EAS<br> ↓<br>Coordinates Environment + Workflow</pre><pre>Xcode<br> ↓<br>Performs Native iOS Build</pre><p>That’s an important architecture distinction.</p><h3>12. Where Does Hermes Fit?</h3><p>Remember our earlier chapters?</p><p>Our JavaScript still needs to ship with the native application.</p><p>A simplified production picture looks like:</p><pre>JS / TS<br>   ↓<br>Metro<br>   ↓<br>Production Bundle<br>   ↓<br>Hermes-compatible output<br>   ↓<br>Packaged Into Native App</pre><p>while native code goes through:</p><pre>Android<br>   ↓<br>Gradle</pre><pre>iOS<br>   ↓<br>Xcode</pre><p>Eventually those pieces become one installable application.</p><p>So EAS Build isn’t only “building JavaScript.”</p><p>It coordinates a <strong>native mobile build containing our React Native runtime and application code</strong>.</p><h3>13. Finally, We Get an Artifact</h3><p>After successful compilation and signing:</p><p>Android may produce:</p><pre>.apk</pre><p>or:</p><pre>.aab</pre><p>depending on the build configuration.</p><p>iOS produces an installable/distributable build artifact appropriate to the workflow.</p><p>Now our pipeline is:</p><pre>SOURCE CODE<br>     ↓<br>EAS CLI<br>     ↓<br>BUILD PROFILE<br>     ↓<br>UPLOAD<br>     ↓<br>BUILD MACHINE<br>     ↓<br>DEPENDENCIES<br>     ↓<br>PREBUILD if required<br>     ↓<br>CREDENTIALS<br>     ↓<br>GRADLE / XCODE<br>     ↓<br>SIGNING<br>     ↓<br>BUILD ARTIFACT</pre><p>That’s EAS Build without the magic.</p><h3>But What Is an AAB?</h3><p>Android gives us two terms that are easy to mix up:</p><pre>APK<br>vs<br>AAB</pre><h3>APK</h3><p>An APK is an Android application package that can be installed on a device.</p><p>Think:</p><pre>APK<br> ↓<br>Install directly</pre><h3>AAB</h3><p>AAB means:</p><h3>Android App Bundle</h3><p>It is primarily a publishing format.</p><p>You upload the bundle to Google Play, and Google Play can generate optimized APKs for different devices.</p><p>Think:</p><pre>AAB<br> ↓<br>Google Play<br> ↓<br>Device-specific APKs<br> ↓<br>Users</pre><p>For store releases, AAB is therefore the important format to understand.</p><h3>Development vs Preview vs Production</h3><p>Now our eas.json profiles make more sense.</p><h3>Development</h3><pre>Development Client<br>       ↓<br>Developer Tools<br>       ↓<br>Debug / Development Workflow</pre><p>Useful while actively developing the app.</p><h3>Preview</h3><pre>Application Build<br>       ↓<br>Internal Distribution<br>       ↓<br>QA / Team / Stakeholders</pre><p>Useful when someone needs to test something closer to a real app without immediately publishing to a store.</p><h3>Production</h3><pre>Production Configuration<br>       ↓<br>Store-ready Build<br>       ↓<br>Play Store / App Store workflow</pre><p>The exact configuration is yours, but this three-profile mental model is useful.</p><h3>Is EAS Build Required to Use Expo?</h3><p>No.</p><p>This is worth repeating.</p><p>You can have:</p><pre>Expo Project<br>     ↓<br>Prebuild<br>     ↓<br>android/ + ios/<br>     ↓<br>Local Gradle / Xcode</pre><p>For example:</p><pre>npx expo run:android</pre><p>or:</p><pre>npx expo run:ios</pre><p>uses your local native development environment.</p><p>You can also integrate Expo projects with other CI systems.</p><p>So:</p><pre>Expo ≠ EAS Build</pre><p>A better model is:</p><pre>Expo<br> ↓<br>Framework + Tooling</pre><pre>EAS Build<br> ↓<br>Optional Build Service</pre><h3>Then Why Use EAS Build?</h3><p>Because mobile build infrastructure is expensive to maintain.</p><p>Without a managed build service, teams need to maintain things like:</p><pre>macOS build machines<br>Xcode versions<br>Android SDK versions<br>Java versions<br>Credentials<br>CI configuration<br>Caching<br>Build artifacts</pre><p>EAS Build provides infrastructure and workflow around those problems.</p><p>Instead of every developer needing the entire build environment perfectly configured, the build can run in a known environment.</p><p>This is particularly useful for iOS because iOS builds require macOS/Xcode infrastructure.</p><h3>What Happens If the Build Fails?</h3><p>Now our mental model becomes useful for debugging.</p><p>Suppose we see:</p><pre>Prebuild failed</pre><p>Look around:</p><pre>Expo config<br>Config plugins<br>Native dependency compatibility</pre><p>Suppose:</p><pre>Gradle failed</pre><p>Investigate:</p><pre>Android native configuration<br>Gradle dependencies<br>Kotlin/Java compilation<br>Android SDK</pre><p>Suppose:</p><pre>Xcode build failed</pre><p>Investigate:</p><pre>Pods<br>Swift/Obj-C compilation<br>Xcode configuration<br>Signing</pre><p>Suppose:</p><pre>Credentials failed</pre><p>Investigate:</p><pre>Keystore<br>Certificate<br>Provisioning Profile<br>Bundle/App identifiers</pre><p>Instead of thinking:</p><blockquote><em>“EAS is broken.”</em></blockquote><p>ask:</p><blockquote><strong><em>Which stage of the pipeline failed?</em></strong></blockquote><p>That’s the same mental model we’ve used throughout this series.</p><h3>EAS Build vs EAS Submit</h3><p>Another important distinction:</p><pre>EAS Build<br>    ↓<br>CREATE THE APP BINARY</pre><p>while:</p><pre>EAS Submit<br>    ↓<br>UPLOAD THE BINARY<br>TO THE STORE</pre><p>Conceptually:</p><pre>Code<br> ↓<br>EAS Build<br> ↓<br>AAB / iOS build<br> ↓<br>EAS Submit<br> ↓<br>Google Play / App Store Connect</pre><p>Building and submitting are different responsibilities.</p><h3>EAS Build vs EAS Update</h3><p>And this distinction is even more important.</p><pre>EAS Build<br>    ↓<br>Native Binary</pre><p>while:</p><pre>EAS Update<br>    ↓<br>Compatible JS + Assets Update</pre><p>Imagine we change:</p><pre>&lt;Text&gt;<br>  Welcome to Roova<br>&lt;/Text&gt;</pre><p>That may be deliverable as an update depending on runtime compatibility and update configuration.</p><p>But suppose we add:</p><pre>New native camera SDK</pre><p>Now the installed native binary doesn’t contain that SDK.</p><p>A JavaScript update cannot magically create compiled native code inside the existing binary.</p><p>We need:</p><pre>New Native Runtime<br>      ↓<br>New Build<br>      ↓<br>Store / Distribution</pre><p>This is exactly what we’ll explore next.</p><h3>🧠 The Two-Layer Mental Model</h3><p>I find this the easiest way to remember Expo deployment.</p><pre>REACT NATIVE APP<br>              │<br>      ┌───────┴───────┐<br>      ↓               ↓<br>JS + Assets       Native Runtime<br>      ↓               ↓<br> EAS Update        EAS Build<br>      ↓               ↓<br>Fast Delivery      New Binary</pre><p>But those two layers need a compatibility contract.</p><p>Otherwise we could send JavaScript expecting native functionality that doesn’t exist in the installed app.</p><p>That contract is connected to:</p><h3>runtimeVersion</h3><p>We’ll go deep into it in Chapter 28.</p><h3>🎯 Interview Corner</h3><h3>What is EAS Build?</h3><p>A concise answer:</p><blockquote><strong><em>EAS Build is Expo’s hosted service for creating native Android and iOS application binaries. It prepares the build environment, resolves the configured workflow and credentials, can generate native projects for CNG apps, and then uses the platform’s native build tools to produce signed artifacts.</em></strong></blockquote><h3>Does EAS Build replace Gradle or Xcode?</h3><p>No.</p><blockquote><strong><em>EAS orchestrates the build environment and workflow. Gradle still performs the Android build, while Xcode performs the iOS build.</em></strong></blockquote><h3>Does EAS Build always run Prebuild?</h3><p>No.</p><p>A useful mental model is:</p><blockquote><strong><em>For CNG projects where native directories aren’t present, native projects need to be generated. If you maintain native projects directly, those projects become the input to the native build instead.</em></strong></blockquote><h3>Is EAS required for Expo?</h3><p>No.</p><p>Expo applications can also be built locally or through other suitable CI infrastructure.</p><h3>What’s the difference between EAS Build and EAS Update?</h3><blockquote><strong><em>Build produces a native binary. Update delivers compatible JavaScript and assets to an existing native runtime.</em></strong></blockquote><p>That distinction is extremely important.</p><h3>My Biggest Learning</h3><p>Before understanding EAS Build, my mental model was:</p><pre>Code<br> ↓<br>Expo Server<br> ↓<br>App</pre><p>Now it’s:</p><pre>                  SOURCE<br>                    ↓<br>              BUILD PROFILE<br>                    ↓<br>              EAS WORKFLOW<br>                    ↓<br>          PREBUILD if required<br>                    ↓<br>            NATIVE PROJECT<br>                    ↓<br>       ┌────────────┴────────────┐<br>       ↓                         ↓<br>    Android                     iOS<br>       ↓                         ↓<br>    Gradle                     Xcode<br>       ↓                         ↓<br>       └────────────┬────────────┘<br>                    ↓<br>                 SIGNING<br>                    ↓<br>             NATIVE BINARY</pre><p>And that reveals something important:</p><blockquote><strong><em>EAS Build isn’t replacing native mobile development. It’s automating and orchestrating much of the infrastructure around it.</em></strong></blockquote><h3>The Complete Expo Build Mental Model</h3><p>We can now connect Chapters 24–27:</p><pre>YOUR EXPO APP<br>      ↓<br>Expo Config<br>      ↓<br>Dependencies + Plugins<br>      ↓<br>PREBUILD / CNG<br>      ↓<br>android/ + ios/<br>      ↓<br>EAS BUILD<br>      ↓<br>Build Environment<br>      ↓<br>Credentials<br>      ↓<br> ┌───────────────┐<br> ↓               ↓<br>Gradle          Xcode<br> ↓               ↓<br>Android         iOS<br> ↓               ↓<br>AAB/APK         Binary<br> └───────┬───────┘<br>         ↓<br>     DISTRIBUTE</pre><p>Now Expo should feel much less like a black box.</p><h3>What’s Next?</h3><p>We can build our application.</p><p>We can sign it.</p><p>We can publish it.</p><p>But imagine we find one tiny problem after release:</p><pre>&lt;Text&gt;<br>  Book You Trip<br>&lt;/Text&gt;</pre><p>We want:</p><pre>&lt;Text&gt;<br>  Book Your Trip<br>&lt;/Text&gt;</pre><p>Do we really need to:</p><pre>Build another native binary<br>       ↓<br>Upload to store<br>       ↓<br>Wait for distribution<br>       ↓<br>Users update</pre><p>for every compatible JavaScript change?</p><p>Not necessarily.</p><p>That’s where the final piece enters:</p><h3>Inside React Native — Chapter 28</h3><h3>How Does EAS Update / OTA Actually Work?</h3><h3>Update Server → Runtime Version → Manifest → JS Bundle → Assets → Launch</h3><p>We’ll answer the most important OTA question:</p><blockquote><strong><em>What can we safely update without rebuilding the native application — and what absolutely requires a new binary?</em></strong></blockquote><p>And once we understand runtimeVersion, the entire Expo delivery model finally connects.</p><p><strong>—</strong><a href="https://medium.com/@chandanvijayadeva.cv"><strong> @learnwithchandu</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f031bc4409f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Really Happens When You Run npx expo prebuild?]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/what-really-happens-when-you-run-npx-expo-prebuild-b6f388d9ada4?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6f388d9ada4</guid>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-development]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 06:27:12 GMT</pubDate>
            <atom:updated>2026-09-15T06:27:12.803Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*GmxbKKe39SZummpepH5SLw.png" /><figcaption>What Really Happens When You Run npx expo prebuild?</figcaption></figure><h3>Inside React Native — Chapter 26</h3><h3>App Config → Native Template → Config Plugins → Android/iOS Projects</h3><p>In Chapter 24, we learned that Expo is not replacing React Native.</p><p>In Chapter 25, we saw that one of Expo’s biggest ideas is <strong>Continuous Native Generation (CNG)</strong>.</p><p>Now we reach the command sitting at the center of that idea:</p><pre>npx expo prebuild</pre><p>At first, this command looks like:</p><blockquote><em>“Expo creates my </em><em>android and </em><em>ios folders.&quot;</em></blockquote><p>That’s true.</p><p>But it doesn’t explain what’s actually happening.</p><p>A better mental model is:</p><pre>JavaScript Project<br>       +<br>Expo Configuration<br>       +<br>Dependencies<br>       +<br>Config Plugins<br>       ↓<br>   EXPO PREBUILD<br>       ↓<br>Generate + Configure<br>Native Projects<br>       ↓<br> ┌─────────────┐<br> ↓             ↓<br>android/      ios/</pre><p>And once this clicks, <strong>Expo’s entire native workflow becomes much easier to understand</strong>.</p><h3>Start With a Strange Expo Project</h3><p>Create a new Expo application and you may initially see something like:</p><pre>my-app/<br>│<br>├── app/<br>├── assets/<br>├── components/<br>├── app.json<br>├── package.json<br>└── node_modules/</pre><p>But where are these?</p><pre>android/<br>ios/</pre><p>How can we build a real Android or iOS application without native projects?</p><p>The answer is:</p><blockquote><strong><em>They don’t necessarily need to exist permanently in your source repository. They can be generated when needed.</em></strong></blockquote><p>That’s the idea behind <strong>Continuous Native Generation</strong>. Expo’s current documentation says CNG projects commonly generate native projects from configuration rather than treating those generated directories as the primary source of truth. <a href="https://docs.expo.dev/workflow/continuous-native-generation/?utm_source=chatgpt.com">Expo documentation</a></p><h3>The Traditional Mental Model</h3><p>In a manually managed React Native project, we might have:</p><pre>JavaScript<br>│<br>├── src/<br>│<br>├── package.json<br>│<br>│<br>├── android/<br>│   ├── build.gradle<br>│   ├── AndroidManifest.xml<br>│   └── MainApplication.kt<br>│<br>└── ios/<br>    ├── Podfile<br>    ├── Info.plist<br>    └── Xcode project</pre><p>Suppose we add camera support.</p><p>We might need to change:</p><pre>Android<br>   ↓<br>AndroidManifest.xml</pre><pre>iOS<br>   ↓<br>Info.plist</pre><p>Now imagine adding:</p><pre>Camera<br>Maps<br>Notifications<br>Deep Linking<br>Firebase<br>Biometrics<br>Custom SDKs</pre><p>Our native projects slowly accumulate configuration.</p><p>Expo asks a different question:</p><blockquote><em>What if much of that native configuration could be </em><strong><em>described and regenerated</em></strong><em>?</em></blockquote><h3>The CNG Mental Model</h3><p>Instead of thinking:</p><pre>android/ + ios/<br>       =<br>Source of Truth</pre><p>CNG encourages us to think more like:</p><pre>app.json / app.config.ts<br>          +<br>package.json<br>          +<br>Config Plugins<br>          +<br>Native Modules<br>          ↓<br>    Source of Intent<br>          ↓<br>       Prebuild<br>          ↓<br>android/ + ios/</pre><p>This distinction is extremely important.</p><p>The generated native projects are still <strong>real Android and iOS projects</strong>.</p><p>Expo isn’t simulating them.</p><p>It is <strong>generating them</strong>.</p><h3>So What Happens When We Run Prebuild?</h3><p>Let’s run:</p><pre>npx expo prebuild</pre><p>Conceptually, Expo goes through a pipeline like this:</p><pre>① Read project<br>      ↓<br>② Resolve Expo config<br>      ↓<br>③ Select native template<br>      ↓<br>④ Generate android/ios<br>      ↓<br>⑤ Evaluate config plugins<br>      ↓<br>⑥ Apply native modifications<br>      ↓<br>⑦ Configure dependencies<br>      ↓<br>⑧ Install native dependencies<br>      ↓<br>Native projects ready</pre><p>Let’s walk through it.</p><h3>1. Expo Reads the Project</h3><p>Expo first has information from files such as:</p><pre>package.json</pre><pre>app.json<br>or<br>app.config.js<br>or<br>app.config.ts</pre><p>package.json tells Expo about our dependencies.</p><p>Our Expo app config describes application-level native configuration such as:</p><pre>{<br>  &quot;expo&quot;: {<br>    &quot;name&quot;: &quot;Roova&quot;,<br>    &quot;scheme&quot;: &quot;roova&quot;,<br>    &quot;icon&quot;: &quot;./assets/icon.png&quot;<br>  }<br>}</pre><p>The app config can describe things such as the app name, icon, splash configuration, deep-linking scheme and other native settings. <a href="https://docs.expo.dev/workflow/configuration/?utm_source=chatgpt.com">Expo documentation</a></p><p>Think:</p><pre>app config<br>    =<br>&quot;What native app do I want?&quot;</pre><h3>2. Expo Resolves the Configuration</h3><p>This part is easy to underestimate.</p><p>Your configuration isn’t necessarily just static JSON.</p><p>You can have:</p><pre>app.json</pre><p>or dynamic configuration:</p><pre>app.config.js<br>app.config.ts</pre><p>For example:</p><pre>export default {<br>  expo: {<br>    name: &quot;Roova&quot;,<br>    scheme: &quot;roova&quot;<br>  }<br>};</pre><p>Expo evaluates this configuration and builds the configuration model that Prebuild will use.</p><p>You can inspect resolved configuration with:</p><pre>npx expo config</pre><p>And for Prebuild-related configuration:</p><pre>npx expo config --type prebuild</pre><p>Expo documents this as a useful way to inspect what Prebuild sees before native code is generated. <a href="https://docs.expo.dev/more/expo-cli/?utm_source=chatgpt.com">Expo documentation</a></p><h3>3. Expo Starts From Native Templates</h3><p>Now Expo needs actual Android and iOS projects.</p><p>It doesn’t create every Gradle and Xcode file from nothing.</p><p>Prebuild starts from native templates corresponding to the Expo SDK version. Expo currently bases the default native template on expo-template-bare-minimum, with versions aligned to the expected React and React Native versions. <a href="https://docs.expo.dev/workflow/continuous-native-generation/?utm_source=chatgpt.com">Expo documentation</a></p><p>Think:</p><pre>Expo SDK<br>    ↓<br>Compatible Native Template<br>    ↓<br>Base Android Project<br>+<br>Base iOS Project</pre><p>Now we have the foundation.</p><p>But it’s still generic.</p><p>Our application-specific configuration needs to be applied.</p><p>That’s where things get interesting.</p><h3>4. Config Plugins Enter</h3><p>Imagine our application uses:</p><pre>npx expo install expo-camera</pre><p>Installing JavaScript/native code alone may not be enough.</p><p>The camera may also need native configuration.</p><p>For example:</p><pre>Android<br>   ↓<br>AndroidManifest.xml</pre><pre>iOS<br>   ↓<br>Info.plist</pre><p>Traditionally, we might edit these manually.</p><p>Expo can instead use a:</p><h3>Config Plugin</h3><p>Conceptually:</p><pre>expo-camera<br>     ↓<br>Config Plugin<br>     ↓<br> ┌───────────────┐<br> ↓               ↓<br>Android         iOS<br>Manifest       Info.plist</pre><p>Expo’s documentation describes config plugins as functions that modify native projects during Prebuild. <a href="https://docs.expo.dev/config-plugins/introduction/?utm_source=chatgpt.com">Expo documentation</a></p><h3>A Simple Example</h3><p>Suppose we configure:</p><pre>{<br>  &quot;expo&quot;: {<br>    &quot;plugins&quot;: [<br>      [<br>        &quot;expo-camera&quot;,<br>        {<br>          &quot;cameraPermission&quot;:<br>            &quot;Allow Roova to access your camera.&quot;<br>        }<br>      ]<br>    ]<br>  }<br>}</pre><p>Now our intention lives in configuration.</p><pre>app.json<br>   ↓<br>expo-camera plugin<br>   ↓<br>Prebuild<br>   ↓<br>AndroidManifest.xml<br>+<br>Info.plist</pre><p>The library can describe how it should configure each platform instead of asking every developer to manually repeat those changes. Expo’s own camera example uses this exact config-plugin pattern. <a href="https://docs.expo.dev/config-plugins/plugins/?utm_source=chatgpt.com">Expo documentation</a></p><p>This is one of the most important ideas behind CNG.</p><h3>5. Under Config Plugins Are “Mods”</h3><p>You’ll eventually hear another Expo term:</p><h3>Mods</h3><p>Don’t make this complicated.</p><p>Remember:</p><pre>Config Plugin<br>      ↓<br>Mod Plugin<br>      ↓<br>Mod<br>      ↓<br>Native File</pre><p>For example:</p><pre>withAndroidManifest<br>        ↓<br>AndroidManifest.xml</pre><p>or:</p><pre>withInfoPlist<br>      ↓<br>Info.plist</pre><p>Mods are the lower-level mechanisms that read and modify platform-specific native project files during Prebuild’s syncing phase. <a href="https://docs.expo.dev/config-plugins/mods/?utm_source=chatgpt.com">Expo documentation</a></p><p>So mentally:</p><blockquote><strong><em>Config Plugin = reusable native configuration logic</em></strong></blockquote><p>while:</p><blockquote><strong><em>Mod = mechanism that actually works with a particular native file/configuration.</em></strong></blockquote><p>You don’t need to memorize every modifier to understand the architecture.</p><h3>6. Dependencies Can Participate Too</h3><p>Here’s another interesting part.</p><p>Imagine installing a React Native native library.</p><pre>npm package<br>    │<br>    ├── JavaScript<br>    │<br>    ├── Android native code<br>    │<br>    ├── iOS native code<br>    │<br>    └── Config plugin</pre><p>Now the package can contain knowledge about how it should integrate into your native application.</p><p>That gives us:</p><pre>Install Library<br>      ↓<br>Prebuild<br>      ↓<br>Generate Native Projects<br>      ↓<br>Apply Library Configuration<br>      ↓<br>Native Dependency Integration</pre><p>Instead of copying configuration from a README into native files forever, some of that integration can become versioned automation.</p><h3>🧠 Pause &amp; Think</h3><p>Imagine a camera library tells us to manually add:</p><pre>Camera permission<br>Manifest entry<br>Info.plist description<br>Native configuration</pre><p>We do it.</p><p>Six months later, we remove the library.</p><p>But we forget to remove one native configuration entry.</p><p>Now we have:</p><pre>Orphaned Native Configuration</pre><p>With CNG, the idea is different:</p><pre>Dependency + Config Plugin<br>           ↓<br>        Prebuild<br>           ↓<br>Configuration exists</pre><p>Remove the dependency/plugin and regenerate:</p><pre>Configuration disappears</pre><p>That reproducibility is one of CNG’s strongest architectural ideas. Expo specifically highlights reducing orphaned native configuration as one of Prebuild’s benefits. <a href="https://docs.expo.dev/workflow/continuous-native-generation/?utm_source=chatgpt.com">Expo documentation</a></p><h3>7. Native Projects Are Generated</h3><p>Eventually we get:</p><pre>my-app/<br>│<br>├── android/<br>│   ├── app/<br>│   ├── build.gradle<br>│   ├── gradle.properties<br>│   └── ...<br>│<br>└── ios/<br>    ├── Podfile<br>    ├── Roova.xcodeproj<br>    └── ...</pre><p>These aren’t fake Expo files.</p><p>They are normal native projects.</p><p>We can open:</p><pre>android/<br>    ↓<br>Android Studio</pre><p>and:</p><pre>ios/<br>    ↓<br>Xcode</pre><p>We can inspect them.</p><p>Debug them.</p><p>Compile them.</p><p>And add native code when our architecture requires it.</p><h3>What About Native Dependency Installation?</h3><p>Prebuild can also perform dependency-related side effects and installs. It detects the package manager from the lockfile, can adjust expected React/React Native dependencies, and can reinstall packages unless options such as --no-install are used. <a href="https://docs.expo.dev/workflow/continuous-native-generation/?utm_source=chatgpt.com">Expo documentation</a></p><p>On the iOS side, the generated project contains the native dependency setup required for the application.</p><p>The key mental model is:</p><pre>Prebuild<br>   ↓<br>Creates/configures native source</pre><pre>Build<br>   ↓<br>Actually compiles native source</pre><p>These are <strong>not the same step</strong>.</p><h3>Prebuild Does NOT Build Your App</h3><p>This is an important interview distinction.</p><pre>npx expo prebuild</pre><p>does not mean:</p><pre>APK created<br>IPA created</pre><p>Prebuild means:</p><pre>Expo Configuration<br>       ↓<br>Native Projects Generated</pre><p>Then a native build does:</p><pre>Native Projects<br>       ↓<br>Gradle / Xcode<br>       ↓<br>Compiled Application</pre><p>So:</p><pre>PREBUILD ≠ BUILD</pre><p>That’s worth remembering.</p><h3>Then What Does expo run:android Do?</h3><p>When we run:</p><pre>npx expo run:android</pre><p>we’re asking Expo CLI to get the native application ready and run/build it locally.</p><p>For CNG projects, Expo tooling can generate the native projects when they’re absent and then invoke the native build workflow.</p><p>Conceptually:</p><pre>expo run:android<br>       ↓<br>Need native project?<br>       ↓<br>Prebuild<br>       ↓<br>Gradle<br>       ↓<br>Install app<br>       ↓<br>Launch</pre><p>Similarly:</p><pre>npx expo run:ios</pre><p>leads into the iOS native build workflow.</p><h3>What About EAS Build?</h3><p>This is another important connection.</p><p>If your CNG project doesn’t contain:</p><pre>android/<br>ios/</pre><p>EAS Build can run Prebuild as part of the build process.</p><p>Conceptually:</p><pre>Your Repository<br>      ↓<br>EAS Build<br>      ↓<br>Prebuild<br>      ↓<br>android/ + ios/<br>      ↓<br>Gradle / Xcode<br>      ↓<br>APK/AAB / iOS binary</pre><p>That’s why CNG projects often don’t need to commit generated native directories. Expo’s current guidance notes that CNG projects commonly leave those directories out of source control and let the build process generate them. <a href="https://docs.expo.dev/workflow/customizing/?utm_source=chatgpt.com">Expo documentation</a></p><p>We’ll go much deeper into this in Chapter 27.</p><h3>Now the Dangerous Command</h3><p>You’ll often see:</p><pre>npx expo prebuild --clean</pre><p>What does --clean mean?</p><p>Conceptually:</p><pre>Existing android/<br>Existing ios/<br>       ↓<br>     DELETE<br>       ↓<br>Generate Again<br>       ↓<br>Apply Config<br>       ↓<br>Apply Plugins</pre><p>Expo describes --clean as the safest way to get a consistent fresh generation because simply layering another Prebuild over existing files can produce different results, particularly with plugins that aren&#39;t perfectly idempotent. <a href="https://docs.expo.dev/workflow/continuous-native-generation/?utm_source=chatgpt.com">Expo documentation</a></p><p>But this creates an important rule.</p><h3>⚠️ Don’t Treat Generated Native Files Like Permanent Manual Files</h3><p>Suppose we run Prebuild.</p><p>Then manually edit:</p><pre>android/app/src/main/AndroidManifest.xml</pre><p>and add:</p><pre>&lt;uses-permission android:name=&quot;something&quot; /&gt;</pre><p>Everything works.</p><p>Then later:</p><pre>npx expo prebuild --clean</pre><p>Expo deletes and regenerates the native project.</p><p>Our manual modification can disappear. <a href="https://docs.expo.dev/workflow/continuous-native-generation/?utm_source=chatgpt.com">Expo documentation</a></p><p>That’s why CNG encourages:</p><pre>DON&#39;T</pre><pre>Generated Native File<br>       ↓<br>Manual Permanent Change</pre><p>Instead:</p><pre>DO</pre><pre>App Config<br>or<br>Config Plugin<br>or<br>Native Module<br>       ↓<br>Prebuild<br>       ↓<br>Generated Native Change</pre><p>That’s a major architectural shift.</p><h3>What If I Need Custom Native Code?</h3><p>Suppose we need:</p><pre>Swift<br>Kotlin<br>Custom SDK<br>Native Module</pre><p>CNG does <strong>not</strong> mean:</p><blockquote><em>“You cannot write native code.”</em></blockquote><p>Expo recommends keeping reusable custom native code outside the generated native directories — for example through native modules — and expressing required native project configuration through config plugins. <a href="https://docs.expo.dev/workflow/customizing/?utm_source=chatgpt.com">Expo documentation</a></p><p>Think:</p><pre>Custom Native Module<br>        +<br>Config Plugin<br>        ↓<br>     Prebuild<br>        ↓<br>Generated Native Project</pre><p>This makes regeneration much safer.</p><h3>Should android/ and ios/ Be Committed to Git?</h3><p>This is one of the most common questions.</p><p>The answer is:</p><blockquote><strong><em>It depends on which workflow owns your native projects.</em></strong></blockquote><h3>CNG workflow</h3><p>If native projects can be reproduced completely from:</p><pre>app config<br>+<br>dependencies<br>+<br>config plugins<br>+<br>native modules</pre><p>then it’s common to ignore:</p><pre>/android<br>/ios</pre><p>and regenerate them when necessary. <a href="https://docs.expo.dev/workflow/customizing/?utm_source=chatgpt.com">Expo documentation</a></p><h3>Manually managed native workflow</h3><p>If your team directly edits:</p><pre>AndroidManifest.xml<br>build.gradle<br>MainApplication<br>AppDelegate<br>Xcode project<br>Podfile</pre><p>and those modifications aren’t represented through plugins/modules, then those native directories are part of your application’s source of truth.</p><p>They should normally be version controlled.</p><p>And you shouldn’t casually run:</p><pre>npx expo prebuild --clean</pre><p>because Expo warns that manual native modifications can be overwritten. <a href="https://docs.expo.dev/workflow/continuous-native-generation/?utm_source=chatgpt.com">Expo documentation</a></p><h3>The Best Mental Model</h3><p>Think about two different philosophies.</p><h3>Native Projects as Source</h3><pre>Developer<br>    ↓<br>android/ + ios/<br>    ↓<br>Manual Changes<br>    ↓<br>Git<br>    ↓<br>Build</pre><h3>Native Projects as Generated Output</h3><pre>Developer<br>    ↓<br>App Config<br>Dependencies<br>Plugins<br>Native Modules<br>    ↓<br>PREBUILD<br>    ↓<br>android/ + ios/<br>    ↓<br>Build</pre><p>Neither model is universally correct.</p><p>The important thing is:</p><blockquote><strong><em>Know which model your project is using.</em></strong></blockquote><p>Mixing them carelessly is where problems begin.</p><h3>When Should I Run Prebuild Again?</h3><p>A practical rule:</p><p>If you only change:</p><pre>React component<br>Business logic<br>State<br>API call<br>JS styling</pre><p>you generally don’t need to regenerate the native project.</p><p>But if you change something affecting the native runtime/project, such as:</p><pre>Native dependency<br>Config plugin<br>App configuration<br>Native permissions<br>Certain build properties</pre><p>then regenerating the native project may be required.</p><p>Expo specifically recommends rerunning Prebuild when adding a new native dependency or changing native project configuration through Expo app config. <a href="https://docs.expo.dev/workflow/overview/?utm_source=chatgpt.com">Expo documentation</a></p><h3>A Real Example: Adding Camera</h3><p>Let’s connect everything.</p><p>We install:</p><pre>npx expo install expo-camera</pre><p>Configure:</p><pre>{<br>  &quot;expo&quot;: {<br>    &quot;plugins&quot;: [<br>      [<br>        &quot;expo-camera&quot;,<br>        {<br>          &quot;cameraPermission&quot;:<br>            &quot;Allow Roova to use your camera.&quot;<br>        }<br>      ]<br>    ]<br>  }<br>}</pre><p>Then:</p><pre>npx expo prebuild --clean</pre><p>Conceptually:</p><pre>package.json<br>     +<br>app.json<br>     ↓<br>Expo Prebuild<br>     ↓<br>Native Template<br>     ↓<br>expo-camera Config Plugin<br>     ↓<br> ┌────────────────────┐<br> ↓                    ↓<br>Android             iOS<br>Manifest           Info.plist<br> ↓                    ↓<br>Camera Config      Camera Config<br> └─────────┬──────────┘<br>           ↓<br>Generated Native Projects</pre><p>Then:</p><pre>npx expo run:android</pre><p>or:</p><pre>npx expo run:ios</pre><p>actually builds the native application.</p><p>That’s the whole idea.</p><h3>🎯 Interview Corner</h3><h3>What does npx expo prebuild do?</h3><p>A short answer:</p><blockquote><strong><em>It generates Android and iOS native projects from the Expo app configuration, native templates, dependencies and config plugins. It’s the core generation step behind Expo’s Continuous Native Generation workflow.</em></strong></blockquote><h3>Is Prebuild the same as building the app?</h3><p>No.</p><pre>Prebuild<br>   ↓<br>Generate native projects</pre><pre>Build<br>   ↓<br>Compile native projects</pre><h3>What is a Config Plugin?</h3><blockquote><strong><em>A config plugin is JavaScript-based configuration logic that modifies generated native projects during Prebuild — for example AndroidManifest.xml or Info.plist.</em></strong><em> </em><a href="https://docs.expo.dev/config-plugins/introduction/?utm_source=chatgpt.com"><em>Expo documentation</em></a></blockquote><h3>What is CNG?</h3><blockquote><strong><em>Continuous Native Generation is the workflow where native Android/iOS projects can be generated from app configuration and plugins instead of always being manually maintained.</em></strong></blockquote><h3>Can I modify generated native files manually?</h3><p>Technically, yes.</p><p>But if you’re following CNG, permanent modifications should generally be represented through config/plugins/modules because regeneration — especially prebuild --clean—can overwrite direct edits. <a href="https://docs.expo.dev/workflow/continuous-native-generation/?utm_source=chatgpt.com">Expo documentation</a></p><h3>My Biggest Learning</h3><p>Before understanding Prebuild, my mental model was:</p><pre>Expo<br>  ↓<br>Hides Android and iOS</pre><p>Now it’s:</p><pre>Expo<br>  ↓<br>Describes Native Configuration<br>  ↓<br>PREBUILD<br>  ↓<br>Generates Android + iOS</pre><p>That’s a completely different idea.</p><p>Expo isn’t removing native projects.</p><p>It’s making them <strong>reproducible</strong>.</p><h3>The Complete Mental Model</h3><p>Remember this pipeline:</p><pre>YOUR PROJECT<br>                  │<br>        ┌─────────┼─────────┐<br>        ↓         ↓         ↓<br>    app.json   package.json  Plugins<br>        │         │         │<br>        └─────────┼─────────┘<br>                  ↓<br>           EXPO PREBUILD<br>                  ↓<br>          Native Templates<br>                  ↓<br>          Config Plugins<br>                  ↓<br>        Native Configuration<br>                  ↓<br>        ┌─────────┴─────────┐<br>        ↓                   ↓<br>     android/              ios/<br>        ↓                   ↓<br>     Gradle               Xcode<br>        └─────────┬─────────┘<br>                  ↓<br>              Native App</pre><p>And the one sentence I would remember is:</p><blockquote><strong><em>Prebuild converts the native intent described by your Expo project into real Android and iOS projects.</em></strong></blockquote><h3>What’s Next?</h3><p>Now we have:</p><pre>Expo Project<br>     ↓<br>Prebuild<br>     ↓<br>android/ + ios/</pre><p>But we still don’t have an app users can install.</p><p>Something must take those native projects and:</p><pre>Install dependencies<br>      ↓<br>Set up credentials<br>      ↓<br>Run Gradle / Xcode<br>      ↓<br>Sign the application<br>      ↓<br>Produce AAB / APK / IPA</pre><p>That’s where <strong>EAS Build</strong> enters.</p><h3>Inside React Native — Chapter 27</h3><h3>What Actually Happens Inside EAS Build?</h3><h3>Git/Upload → Build Profile → Prebuild → Credentials → Gradle/Xcode → Signed App</h3><p>And we’ll answer an important question:</p><blockquote><strong><em>Is EAS Build actually building our React Native application — or are Gradle and Xcode still doing the real work?</em></strong></blockquote><p><strong>—</strong><a href="https://medium.com/@chandanvijayadeva.cv"><strong> @learnwithchandu</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6f388d9ada4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[⚡ React Native Quick Dive — Migrating to the New Architecture]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/react-native-quick-dive-migrating-to-the-new-architecture-d1b1f16a5f88?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1b1f16a5f88</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Thu, 03 Sep 2026 13:08:50 GMT</pubDate>
            <atom:updated>2026-09-03T13:08:50.200Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*n0BqjkIuOFIIXrExTPZ15w.png" /><figcaption>Migrating to the New Architecture</figcaption></figure><h3>Bridge → JSI • Fabric • TurboModules • Codegen</h3><p>For years, React Native was commonly explained like this:</p><pre>JavaScript<br>    ↓<br>Old Bridge<br>    ↓<br>Serialize data<br>    ↓<br>Native</pre><p>The New Architecture changes that mental model.</p><pre>JSI<br>        ┌──────────┴──────────┐<br>        ↓                     ↓<br>     FABRIC              TURBOMODULES<br>  UI Rendering           Native APIs<br>        ↓                     ↓<br> Fabric Components       Codegen Specs<br>        └──────────┬──────────┘<br>                   ↓<br>             Android / iOS</pre><p><strong>JSI</strong> provides the low-level interface that lets JavaScript and C++ interact without the old JSON-style serialized bridge. It can support direct/synchronous access where appropriate, but the important idea is <strong>direct interoperability rather than “everything is synchronous.”</strong> <a href="https://reactnative.dev/architecture/landing-page?utm_source=chatgpt.com">React Native</a></p><p><strong>Fabric</strong> is React Native’s modern rendering system.</p><p><strong>TurboModules</strong> are the New Architecture’s native-module system and support capabilities such as lazy loading.</p><p><strong>Codegen</strong> takes typed TypeScript/Flow specifications and generates much of the native glue required between the JavaScript and native sides. <a href="https://reactnative.dev/docs/the-new-architecture/codegen-cli?utm_source=chatgpt.com">React Native</a></p><h3>The timeline matters</h3><pre>RN 0.76<br>   ↓<br>New Architecture DEFAULT</pre><pre>RN 0.81<br>   ↓<br>Last version allowing Legacy Architecture</pre><pre>RN 0.82+<br>   ↓<br>New Architecture ONLY</pre><pre>RN 0.84+<br>   ↓<br>Legacy implementation removal continues</pre><p>React Native 0.76 enabled the New Architecture by default. Starting with 0.82, disabling it no longer switches the application back to the Legacy Architecture. <a href="https://reactnative.dev/blog/2024/10/23/release-0.76-new-architecture?utm_source=chatgpt.com">React Native</a></p><p>So if we’re migrating an older production application today, I wouldn’t think:</p><pre>Turn on newArchEnabled=true<br>            ↓<br>Done 🎉</pre><p>I’d think:</p><pre>Dependencies<br>     ↓<br>React Native Version<br>     ↓<br>Native Modules / Components<br>     ↓<br>Build<br>     ↓<br>Test<br>     ↓<br>Profile</pre><h3>1️. Audit Dependencies First</h3><p>Before touching architecture configuration, inspect libraries containing native code.</p><p>For example:</p><pre>react-native-reanimated<br>react-native-screens<br>camera libraries<br>maps<br>payments<br>analytics SDKs<br>custom native modules</pre><p>Ask:</p><pre>Does it support New Architecture?<br>        ↓<br>       YES<br>        ↓<br>Is our installed version compatible?</pre><p>This is often more important than the architecture flag itself.</p><p>The New Architecture introduced an interoperability layer that allowed many older libraries to continue working while migration happened, but first-class New Architecture support is still preferable. <a href="https://reactnative.dev/blog/2024/10/23/the-new-architecture-is-here?utm_source=chatgpt.com">React Native</a></p><h3>2️. Upgrade React Native</h3><p>For a very old application, don’t treat this as simply:</p><pre>npm install react-native@latest</pre><p>A large RN version jump can contain native Android/iOS project changes.</p><p>Use the official upgrade guidance and Upgrade Helper to understand the changes between your application’s version and the target version. React Native specifically recommended moving legacy apps through <strong>0.81 with New Architecture enabled before moving to 0.82+</strong>. <a href="https://reactnative.dev/blog/2025/10/08/react-native-0.82?utm_source=chatgpt.com">React Native</a></p><p>Mental model:</p><pre>Old RN App<br>    ↓<br>Upgrade native project<br>    ↓<br>Resolve dependencies<br>    ↓<br>Run under New Architecture<br>    ↓<br>Verify<br>    ↓<br>Move to current RN</pre><h3>3️. Understand Hermes Separately</h3><p>Don’t remember this as:</p><blockquote><em>“New Architecture = Hermes.”</em></blockquote><p>They’re related pieces of modern React Native, but they solve different problems.</p><pre>Hermes<br>   ↓<br>Executes JavaScript<br></pre><pre>JSI<br>   ↓<br>Interop foundation<br></pre><pre>Fabric<br>   ↓<br>Rendering<br></pre><pre>TurboModules<br>   ↓<br>Native modules</pre><p>Hermes V1 became the default engine in React Native 0.84. <a href="https://reactnative.dev/blog/2026/02/11/react-native-0.84?utm_source=chatgpt.com">React Native</a></p><p>That’s a much cleaner interview mental model.</p><h3>4️. Architecture Flags Depend on Your RN Version</h3><p>For the migration-era releases, you may encounter:</p><pre>newArchEnabled=true</pre><p>on Android and New Architecture configuration during iOS pod installation.</p><p>But don’t blindly copy old migration commands into a modern RN project.</p><p>Why?</p><p>Because starting with <strong>React Native 0.82, the New Architecture is the only architecture</strong>. Setting newArchEnabled=false or trying to disable it on iOS is ignored. <a href="https://reactnative.dev/blog/2025/10/08/react-native-0.82?utm_source=chatgpt.com">React Native</a></p><p>So:</p><pre>Older migration project<br>        ↓<br>Architecture flag matters</pre><pre>RN 0.82+<br>        ↓<br>New Architecture is the runtime</pre><h3>5️. Find Your Custom Native Code</h3><p>This is where things get interesting.</p><p>Imagine your old application has:</p><pre>JS<br> ↓<br>Legacy PaymentModule<br> ↓<br>Swift / Kotlin</pre><p>The app may continue working through compatibility mechanisms depending on the module, but that doesn’t mean the module has truly migrated.</p><p>The target architecture is:</p><pre>TypeScript Spec<br>      ↓<br>    Codegen<br>      ↓<br>Generated Interfaces<br>      ↓<br>TurboModule<br>      ↓<br>Swift / ObjC / Kotlin / Java / C++</pre><p>Similarly, custom native UI components should move toward <strong>Fabric Native Components</strong>. React Native recommends migrating custom Native Modules and Native Components to their New Architecture APIs rather than treating interoperability as the final architecture. <a href="https://reactnative.dev/blog/2024/10/23/the-new-architecture-is-here?utm_source=chatgpt.com">React Native</a></p><h3>🧠 The Migration Mental Model</h3><p>Don’t memorize ten commands.</p><p>Remember this:</p><pre>OLD APPLICATION<br>      ↓<br>① AUDIT<br>Dependencies<br>      ↓<br>② UPGRADE<br>React Native<br>      ↓<br>③ VERIFY<br>Build + Hermes/runtime<br>      ↓<br>④ MIGRATE<br>Native Modules → TurboModules<br>Native Components → Fabric<br>      ↓<br>⑤ CODEGEN<br>Typed JS ↔ Native contracts<br>      ↓<br>⑥ TEST<br>Android + iOS<br>      ↓<br>⑦ PROFILE<br>Startup / Rendering / Native calls<br>      ↓<br>NEW ARCHITECTURE ✅</pre><p>And the architectural change can be remembered even more simply:</p><pre>OLD<br>JS<br> ↓<br>Bridge<br> ↓<br>Native<br></pre><pre>NEW<br>             JSI<br>          ↙       ↘<br>     Fabric      TurboModules<br>       ↓              ↓<br>      UI          Native APIs<br>          ↘       ↙<br>         Android/iOS</pre><h3>🎯 Interview answer</h3><p>If someone asks:</p><p><strong>“How would you migrate an existing React Native application to the New Architecture?”</strong></p><p>A concise answer is:</p><blockquote><em>“First I’d audit native dependencies and upgrade incompatible libraries. Then I’d upgrade React Native using the official upgrade path, get the application running under the New Architecture, and test both platforms. After that I’d identify legacy custom Native Modules and Components and migrate them toward TurboModules and Fabric Components using typed specs and Codegen. Finally, I’d regression-test and profile the application instead of assuming the migration itself gives an automatic performance improvement.”</em></blockquote><p>That’s enough for the first answer.</p><p>Then, if they go deeper:</p><pre>JSI → interoperability<br>Fabric → rendering<br>TurboModules → native modules<br>Codegen → typed native contracts</pre><h3>💡 One Thing to Remember</h3><blockquote><strong><em>New Architecture migration isn’t just flipping </em></strong><strong><em>newArchEnabled=true.</em></strong></blockquote><p>It’s moving the application from:</p><p><strong>Bridge-era assumptions</strong></p><p>to:</p><p><strong>JSI + Fabric + TurboModules + Codegen.</strong></p><p>And from React Native <strong>0.82 onward, the New Architecture isn’t really an optional future anymore — it’s the architecture React Native runs on.</strong> <a href="https://reactnative.dev/blog/2025/10/08/react-native-0.82?utm_source=chatgpt.com">React Native</a></p><p><strong>— </strong><a href="https://medium.com/@chandanvijayadeva.cv"><strong>@learnwithchandu</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1b1f16a5f88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[⚡ Quick Dive — What Is MCP?]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/quick-dive-what-is-mcp-f4aef1baeacc?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4aef1baeacc</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[model-context-protocol]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 05:42:39 GMT</pubDate>
            <atom:updated>2026-08-31T05:42:39.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2N63p1FnTZwVWLfBQS2cw.png" /></figure><h3>MCP is basically a USB-C port for AI</h3><p>Before MCP, every AI app needed its <strong>own custom integration</strong> for every service.</p><pre>ChatGPT → custom GitHub integration<br>Claude  → another GitHub integration<br>Cursor  → another GitHub integration</pre><p>Now imagine one common protocol:</p><pre>              MCP<br>               ↓<br>        ┌──────┼──────┐<br>        ↓      ↓      ↓<br>      GitHub  DB     Slack</pre><p>Then different AI clients can connect to the same MCP server:</p><pre>ChatGPT ─┐<br>Claude  ─┼──→ MCP Server ─→ Your System<br>Cursor  ─┤<br>VS Code ─┘</pre><p>That common language is <strong>Model Context Protocol — MCP</strong>.</p><p>The official TypeScript SDK describes MCP as an open standard that connects AI applications to the systems where your data and tools live. An MCP server can expose <strong>tools, resources, and prompts</strong>, and compatible hosts such as Cursor or Claude Code can connect to it. <a href="https://ts.sdk.modelcontextprotocol.io/v2/?utm_source=chatgpt.com">MCP TypeScript SDK</a></p><h3>Why Was MCP Needed?</h3><p>Suppose we build an AI assistant for our company.</p><p>We want it to:</p><pre>Read Jira tickets<br>Read GitHub<br>Query database<br>Search documentation<br>Create tasks<br>Send messages</pre><p>Without MCP, we might build:</p><pre>ChatGPT integration<br>      ↓<br>GitHub-specific code</pre><pre>Claude integration<br>      ↓<br>GitHub-specific code</pre><pre>Cursor integration<br>      ↓<br>GitHub-specific code</pre><p>We keep solving the same problem.</p><p>MCP changes this to:</p><pre>           GitHub MCP Server<br>                    ↑<br>          ┌─────────┼─────────┐<br>          ↓         ↓         ↓<br>       ChatGPT    Claude    Cursor</pre><p>Build the integration once.</p><p>Compatible AI clients can understand the same interface.</p><p>That’s the big idea.</p><h3>But What Exactly Is an MCP Server?</h3><p>Think about a normal backend API.</p><p>You might expose:</p><pre>GET /orders<br>POST /orders<br>GET /customers</pre><p>An MCP server does something similar, but it describes capabilities in a way an AI client understands.</p><p>For example:</p><pre>MCP Server<br>   │<br>   ├── getCustomer()<br>   ├── searchOrders()<br>   ├── createTicket()<br>   └── getProjectDocumentation()</pre><p>Now the AI can discover:</p><blockquote><em>“I have a tool called </em><em>searchOrders.&quot;</em></blockquote><p>And when needed, it can call it.</p><h3>The Three Words You Should Remember</h3><p>Traditionally, MCP servers expose three major concepts:</p><pre>Tools<br>Resources<br>Prompts</pre><h3>Tools</h3><p>Actions the AI can execute.</p><pre>createIssue()<br>sendEmail()<br>searchOrders()<br>deployApplication()</pre><p>Think:</p><blockquote><strong><em>Do something.</em></strong></blockquote><h3>Resources</h3><p>Information the AI can read.</p><pre>Documentation<br>Files<br>Database records<br>Logs<br>Schemas</pre><p>Think:</p><blockquote><strong><em>Give me context.</em></strong></blockquote><h3>Prompts</h3><p>Reusable prompt/workflow templates the server can expose.</p><p>Think:</p><blockquote><strong><em>Here’s a predefined way to perform a task.</em></strong></blockquote><p>The protocol has continued evolving rapidly; the July 2026 MCP specification introduced a stateless protocol core, stronger authorization, extensions, and updated SDKs. <a href="https://blog.modelcontextprotocol.io/posts/2026-07-28/?utm_source=chatgpt.com">Model Context Protocol Blog</a></p><h3>A Small Example</h3><p>Imagine I build:</p><h3>school-mcp</h3><p>for a school application.</p><p>It exposes:</p><pre>getStudentAttendance(studentId)</pre><pre>getAssignments(classId)</pre><pre>createAssignment(...)</pre><pre>getFeeStatus(studentId)</pre><p>Now an AI client could receive:</p><blockquote><em>“Which students haven’t submitted today’s assignment?”</em></blockquote><p>The model understands the question.</p><p>It chooses:</p><pre>getAssignments()</pre><p>Then perhaps:</p><pre>getStudentSubmissions()</pre><p>and produces the answer.</p><p>The important architecture is:</p><pre>             AI Model<br>                ↓<br>            MCP Client<br>                ↓<br>             MCP Server<br>                ↓<br>        Your Application/API<br>                ↓<br>             Database</pre><p>The model should not directly know how your database works.</p><p>The MCP server becomes the controlled boundary.</p><h3>Let’s Build a Tiny MCP Server</h3><p>For learning, TypeScript is a nice fit.</p><p>Conceptually:</p><pre>my-mcp/<br>│<br>├── package.json<br>├── tsconfig.json<br>└── src/<br>    └── index.ts</pre><p>We install the MCP SDK and define tools.</p><p>A simplified example looks like:</p><pre>import { McpServer } from &quot;@modelcontextprotocol/server&quot;;<br><br>const server = new McpServer({<br>  name: &quot;school-mcp&quot;,<br>  version: &quot;1.0.0&quot;<br>});<br>server.registerTool(<br>  &quot;get_student&quot;,<br>  {<br>    description: &quot;Get student information&quot;<br>  },<br>  async ({ studentId }) =&gt; {<br>    const student = await getStudent(studentId);<br>    return {<br>      content: [<br>        {<br>          type: &quot;text&quot;,<br>          text: JSON.stringify(student)<br>        }<br>      ]<br>    };<br>  }<br>);</pre><p>Then our MCP server can sit in front of:</p><pre>REST API<br>GraphQL<br>Database<br>Filesystem<br>Internal services</pre><p>So MCP doesn’t replace your backend.</p><p>It sits <strong>between the AI client and your existing backend capabilities</strong>.</p><h3>This Is the Part That Usually Makes MCP Click</h3><p>Imagine you already have:</p><pre>GET /api/students/:id</pre><p>You do <strong>not</strong> rewrite your entire backend using MCP.</p><p>Instead:</p><pre>AI<br> ↓<br>MCP Tool<br> ↓<br>Existing REST API<br> ↓<br>Backend<br> ↓<br>Database</pre><p>For example:</p><pre>server.registerTool(&quot;get_student&quot;, ..., async ({ studentId }) =&gt; {<br>const response = await fetch(<br>    `${API_URL}/students/${studentId}`<br>  );<br>  return await response.json();<br>});</pre><p>MCP is essentially creating an <strong>AI-friendly interface over systems you already have</strong>.</p><h3>How Does ChatGPT Use It?</h3><p>Conceptually:</p><pre>ChatGPT<br>   ↓<br>MCP App / Connector<br>   ↓<br>Remote MCP Server<br>   ↓<br>Your API</pre><p>Current ChatGPT support varies by plan and mode. OpenAI’s documentation says custom MCP-powered apps can be used through Developer Mode; full MCP support including write/modify actions is currently available for Business and Enterprise/Edu, while Pro can connect custom MCPs with read/fetch permissions in Developer Mode. ChatGPT connects to <strong>remote MCP servers</strong> rather than directly connecting to a local server. <a href="https://help.openai.com/en/articles/12584461-developer-mode-and-full-mcp-connectors-in-chatgpt-beta?utm_source=chatgpt.com">OpenAI Help Center</a></p><p>OpenAI’s Apps SDK is also built around MCP and is the recommended approach when you want to build richer apps that run inside ChatGPT. <a href="https://help.openai.com/en/articles/12515353-build-with-the-apps-sdk?utm_source=chatgpt.com">OpenAI Help Center</a></p><p>So the production picture can look like:</p><pre>ChatGPT<br>    ↓<br>Custom MCP App<br>    ↓<br>https://mcp.yourcompany.com<br>    ↓<br>Company Services</pre><h3>How Does Claude Use MCP?</h3><p>This is where MCP originally became especially popular.</p><p>The mental model remains:</p><pre>Claude / Claude Code<br>        ↓<br>    MCP Client<br>        ↓<br>    MCP Server<br>        ↓<br>Your Tools / Data</pre><p>You configure the MCP server in the client, and Claude can discover the tools exposed by that server.</p><p>For example:</p><pre>Claude<br>  ↓<br>school-mcp<br>  ↓<br>getAssignments()<br>getAttendance()</pre><p>Now you could say:</p><blockquote><em>“Find students with low attendance and show their pending assignments.”</em></blockquote><p>Claude can coordinate the available MCP tools instead of you manually calling each API.</p><h3>Cursor Works the Same Way</h3><p>Cursor can also act as an MCP host.</p><p>Imagine we create a developer MCP server:</p><pre>company-dev-mcp<br>   │<br>   ├── search_docs<br>   ├── get_api_schema<br>   ├── inspect_logs<br>   └── create_jira_ticket</pre><p>Cursor connects to it.</p><p>Then inside Cursor you could ask:</p><blockquote><em>“Why does our payment API return error P104?”</em></blockquote><p>Instead of relying only on the codebase, the AI could potentially:</p><pre>Search internal docs<br>      ↓<br>Inspect API schema<br>      ↓<br>Check logs<br>      ↓<br>Explain issue</pre><p>through the permitted MCP tools.</p><p>That’s much more powerful than just giving an LLM a giant prompt.</p><h3>🧠 The Mental Model</h3><p>This is the diagram I’d put in the article:</p><pre>                   USER<br>                     ↓<br>               &quot;Find my orders&quot;<br>                     ↓<br>        ┌─────────────────────────┐<br>        │       AI CLIENT         │<br>        │ ChatGPT / Claude/Cursor │<br>        └────────────┬────────────┘<br>                     ↓<br>                 MCP Protocol<br>                     ↓<br>        ┌─────────────────────────┐<br>        │       MCP SERVER        │<br>        │                         │<br>        │  Tools                  │<br>        │  Resources              │<br>        │  Auth / Permissions     │<br>        └────────────┬────────────┘<br>                     ↓<br>          Existing Application<br>                     ↓<br>          REST / GraphQL / DB<br>                     ↓<br>                    DATA</pre><p>Now MCP becomes much easier to remember.</p><h3>Why Is MCP Powerful?</h3><p>The biggest benefit isn’t simply:</p><blockquote><em>“AI can call APIs.”</em></blockquote><p>We could already make models call APIs.</p><p>The interesting part is <strong>standardization</strong>.</p><p>Instead of:</p><pre>Tool A integration for ChatGPT<br>Tool A integration for Claude<br>Tool A integration for Cursor<br>Tool A integration for VS Code</pre><p>we move toward:</p><pre>            MCP Server<br>                 ↑<br>       ┌─────────┼──────────┐<br>       ↓         ↓          ↓<br>    ChatGPT    Claude     Cursor</pre><p>That creates portability.</p><h3>Another Benefit: AI Doesn’t Need Everything in the Prompt</h3><p>Without tools, developers sometimes do this:</p><pre>Take:<br>20 documentation files<br>+<br>database schema<br>+<br>API specification<br>+<br>logs<br><br>Put everything into context</pre><p>That’s expensive and noisy.</p><p>With MCP:</p><pre>Question<br>   ↓<br>AI decides what information is needed<br>   ↓<br>Calls relevant tool/resource<br>   ↓<br>Receives small relevant result</pre><p>For example:</p><pre>&quot;Why did payment 784 fail?&quot;<br>             ↓<br>       getPayment(784)<br>             ↓<br>        inspectLogs()<br>             ↓<br>          Answer</pre><p>Much better.</p><h3>But MCP Is Not Magic</h3><p>There’s an important security lesson here.</p><p>If an MCP tool can:</p><pre>deleteUser()<br>sendPayment()<br>deployProduction()</pre><p>the AI potentially has access to a powerful capability.</p><p>So a production MCP server must consider:</p><pre>Authentication<br>Authorization<br>Input validation<br>Audit logs<br>Rate limits<br>User permissions<br>Confirmation for dangerous operations</pre><p>OpenAI specifically warns that connecting untrusted MCP servers can expose users to security risks such as prompt injection, and write actions may require additional confirmations. <a href="https://help.openai.com/en/articles/12584461?utm_source=chatgpt.com">OpenAI Help Center</a></p><p>Treat an MCP server more like:</p><blockquote><strong><em>an API gateway for AI</em></strong></blockquote><p>than a random developer plugin.</p><h3>MCP vs REST API</h3><p>This is another common confusion.</p><p>It isn’t:</p><pre>REST<br> VS<br>MCP</pre><p>They can work together.</p><p>Think:</p><pre>              HUMAN APP<br>                   ↓<br>               REST API<br>                   ↓<br>                Backend<br></pre><pre>                 AI<br>                  ↓<br>                 MCP<br>                  ↓<br>               REST API<br>                  ↓<br>               Backend</pre><p>REST is often how your systems communicate.</p><p>MCP defines how AI applications <strong>discover and use capabilities/context</strong>.</p><h3>MCP vs Function Calling</h3><p>Also related, but not identical.</p><p>Function calling usually looks like:</p><pre>Application<br>    ↓<br>Tell model these specific functions<br>    ↓<br>Model calls function</pre><p>MCP adds a standardized protocol around the integration.</p><p>Think:</p><pre>Function calling<br>     =<br>&quot;Model can use a function.&quot;<br></pre><pre>MCP<br>     =<br>&quot;Standard way AI clients and external<br> systems expose/discover/use capabilities.&quot;</pre><h3>One MCP Server, Many AI Clients</h3><p>This is probably the strongest diagram for your article:</p><pre>                         ┌───────────┐<br>                         │ ChatGPT   │<br>                         └─────┬─────┘<br>                               │<br>                         ┌─────▼─────┐<br>                         │ Claude    │<br>                         └─────┬─────┘<br>                               │<br>                         ┌─────▼─────┐<br>                         │ Cursor    │<br>                         └─────┬─────┘<br>                               │<br>                       MCP Protocol<br>                               │<br>                     ┌─────────▼─────────┐<br>                     │ COMPANY MCP       │<br>                     │                   │<br>                     │ searchDocs        │<br>                     │ getCustomer       │<br>                     │ createTicket      │<br>                     │ inspectLogs       │<br>                     └─────────┬─────────┘<br>                               │<br>                ┌──────────────┼──────────────┐<br>                ↓              ↓              ↓<br>              GitHub          Jira          Database</pre><p>Now the concept becomes very intuitive:</p><blockquote><strong><em>Build one AI integration layer. Let multiple AI tools speak to it through MCP.</em></strong></blockquote><h3>My Biggest Learning</h3><p>Before understanding MCP, I imagined AI integrations like:</p><pre>AI → API</pre><p>But that’s only part of the picture.</p><p>My current mental model is:</p><pre>AI Application<br>      ↓<br>MCP Client<br>      ↓<br>Standard Protocol<br>      ↓<br>MCP Server<br>      ↓<br>Controlled Tools + Data<br>      ↓<br>Existing Systems</pre><p>And that one abstraction explains why MCP has become so important.</p><h3>The One-Line Explanation</h3><p>If someone asks you in an interview:</p><blockquote><strong><em>What is MCP?</em></strong></blockquote><p>You can say:</p><blockquote><strong><em>MCP is an open protocol that gives AI applications a standard way to discover and use external tools and data. Instead of building separate integrations for ChatGPT, Claude, Cursor, and other clients, we can expose capabilities through an MCP server and let compatible clients connect to it.</em></strong></blockquote><p>And if they ask for a simple analogy:</p><blockquote><strong><em>REST standardized how applications expose APIs. MCP is trying to standardize how AI applications connect to tools and context.</em></strong></blockquote><p>That’s the mental model I’d use.</p><p>For the series, I’d title this one:</p><p><strong>⚡ Inside AI — Quick Dive: MCP Explained Simply — How ChatGPT, Claude &amp; Cursor Connect to Your Tools</strong></p><p>Then Chapter 26 can continue with <strong>What Really Happens When You Run </strong><strong>npx expo prebuild?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4aef1baeacc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Expo vs React Native Community CLI — Which Should You Choose in 2026?]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/expo-vs-react-native-community-cli-which-should-you-choose-in-2026-04a86d1b02e5?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/04a86d1b02e5</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 05:26:20 GMT</pubDate>
            <atom:updated>2026-08-31T05:26:20.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NYLMEocewTe2791ACKSKdw.png" /><figcaption>Expo vs React Native Community CLI — Which Should You Choose in 2026?</figcaption></figure><h3>Inside React Native — Chapter 25</h3><h3>Expo vs Framework-less React Native: Native Control, Development Workflow, Builds, and the Right Choice</h3><p>For years, React Native developers have heard something like this:</p><pre>Expo<br> ↓<br>Easy<br> ↓<br>Beginner projects</pre><pre>React Native CLI<br> ↓<br>Native access<br> ↓<br>Serious production apps</pre><p>I used to think about the choice in almost the same way.</p><p>But in <strong>2026, this mental model is outdated</strong>.</p><p>React Native’s own documentation now recommends using a framework such as Expo when starting a new application, while still supporting React Native without a framework when you have requirements that justify managing more of the stack yourself. <a href="https://reactnative.dev/?utm_source=chatgpt.com">React Native</a></p><p>So the real question isn’t:</p><blockquote><strong><em>Expo or React Native?</em></strong></blockquote><p>Both are React Native.</p><p>The better question is:</p><blockquote><strong><em>How much of the React Native application infrastructure do I want to assemble and maintain myself?</em></strong></blockquote><p>Let’s understand the difference.</p><h3>First, Let’s Fix the Terminology</h3><p>People commonly say:</p><pre>Expo vs React Native CLI</pre><p>You’ll hear me use that shorthand too.</p><p>But technically, a better comparison is:</p><pre>React Native<br>     │<br>     ├───────────────┐<br>     ↓               ↓<br>Expo Framework   React Native<br>                 without a framework</pre><p>Expo’s own documentation describes an <strong>Expo app</strong> simply as a React Native application using Expo tools. <a href="https://docs.expo.dev/workflow/overview/?utm_source=chatgpt.com">Expo Documentation</a></p><p>So:</p><pre>Expo App<br>   ↓<br>React Native<br>   ↓<br>Android / iOS</pre><p>and:</p><pre>Framework-less App<br>   ↓<br>React Native<br>   ↓<br>Android / iOS</pre><p>Both eventually use the React Native architecture we explored earlier:</p><pre>JavaScript<br>    ↓<br>Hermes<br>    ↓<br>React / Fiber<br>    ↓<br>Fabric<br>    ↓<br>Native UI</pre><p>Expo doesn’t replace any of that.</p><h3>Then What’s Actually Different?</h3><p>Imagine we’re starting an e-commerce application.</p><p>We’ll need:</p><pre>Navigation<br>Deep Linking<br>Camera<br>Notifications<br>Build Configuration<br>Environment Variables<br>App Icons<br>Splash Screen<br>Native Permissions<br>CI/CD<br>Store Builds<br>OTA Updates</pre><p>React Native gives us the foundation.</p><p>But it intentionally doesn’t prescribe every piece of application infrastructure.</p><p>That leaves us with two broad approaches.</p><h3>Approach 1 — Use Expo as the Framework</h3><p>With Expo, we start with an ecosystem that already provides conventions and tooling around React Native.</p><p>Conceptually:</p><pre>                 OUR APP<br>                    ↓<br>                  EXPO<br>                    ↓<br>     ┌──────────────┼──────────────┐<br>     ↓              ↓              ↓<br> Expo Router     Expo SDK       Expo CLI<br>     ↓              ↓              ↓<br> Navigation     Native APIs    Dev Workflow<br><br>              + Config Plugins<br>              + Prebuild / CNG<br>              + Development Builds<br>              + Optional EAS<br>                    ↓<br>              React Native<br>                    ↓<br>              Android / iOS</pre><p>Instead of selecting and wiring every piece ourselves, we get an opinionated starting point.</p><p>That’s the value of a framework.</p><h3>Approach 2 — React Native Without a Framework</h3><p>Now imagine starting closer to the native projects themselves.</p><p>Conceptually:</p><pre>Our Application<br>      ↓<br>React Native<br>      ↓<br>android/<br>ios/<br>      ↓<br>Choose &amp; Configure<br>Our Own Tooling<br>      ↓<br>Android / iOS</pre><p>We decide how to handle:</p><pre>Navigation</pre><pre>Native configuration</pre><pre>Build automation</pre><pre>App updates</pre><pre>Deep linking</pre><pre>Native dependencies</pre><pre>Project conventions</pre><pre>Release infrastructure</pre><p>This gives us direct ownership of more infrastructure.</p><p>But ownership also means:</p><blockquote><strong><em>We are responsible for maintaining it.</em></strong></blockquote><p>And that’s the trade-off people sometimes forget.</p><h3>“But Expo Doesn’t Give Native Control…”</h3><p>This is probably the biggest outdated argument.</p><p>Years ago, many developers associated Expo entirely with:</p><h3>Expo Go</h3><p>Expo Go contains a predefined native runtime.</p><p>So if the native library you needed wasn’t already included, you couldn’t simply add arbitrary native code to that installed Expo Go binary.</p><p>That led to the belief:</p><pre>Expo<br>  =<br>No Native Code</pre><p>But modern Expo development is different.</p><p>For production-grade projects, Expo recommends <strong>development builds</strong> rather than treating Expo Go as the full development environment. A development build is your own native app and can include native libraries and native configuration. <a href="https://docs.expo.dev/workflow/overview/?utm_source=chatgpt.com">Expo Documentation</a></p><p>So today we can have:</p><pre>Expo Project<br>     ↓<br>Development Build<br>     ↓<br>Our Native Dependencies<br>     ↓<br>Swift / Kotlin<br>     ↓<br>Android / iOS</pre><p>That changes the comparison significantly.</p><h3>Let’s Test It With a Real Requirement</h3><p>Imagine our app requires a payment SDK.</p><p>The vendor provides:</p><pre>Android SDK → Kotlin / Java</pre><pre>iOS SDK → Swift / Objective-C</pre><p>Old mental model:</p><pre>Need Native SDK?<br>      ↓<br>Expo impossible ❌<br>      ↓<br>Use CLI</pre><p>Modern mental model:</p><pre>Need Native SDK?<br>      ↓<br>Does the library support RN/Expo workflow?<br>      ↓<br>Use native dependency<br>      ↓<br>Configure with plugin/native project if required<br>      ↓<br>Build development client</pre><p>Expo development builds can contain native dependencies, so simply needing native code is no longer enough reason to reject Expo. <a href="https://docs.expo.dev/develop/development-builds/introduction/?utm_source=chatgpt.com">Expo Documentation</a></p><h3>🧠 Pause &amp; Think</h3><p>Suppose you’re building a banking application.</p><p>You need:</p><pre>Biometrics</pre><pre>Camera</pre><pre>Custom Payment SDK</pre><pre>Push Notifications</pre><pre>Certificate Configuration</pre><pre>Custom Swift / Kotlin</pre><p>Would you automatically choose framework-less React Native?</p><p>A few years ago, many developers would immediately say:</p><blockquote><strong><em>Yes.</em></strong></blockquote><p>Today the better answer is:</p><blockquote><strong><em>Not enough information yet.</em></strong></blockquote><p>First ask:</p><pre>Can Expo&#39;s development-build workflow support it?</pre><pre>Can config plugins represent the native configuration?</pre><pre>Can the required native modules be integrated?</pre><pre>Does our organization have constraints around native projects/builds?</pre><p>Architecture decisions should come from requirements — not old assumptions.</p><h3>Where Expo Becomes Really Interesting: CNG</h3><p>Remember Chapter 24?</p><p>Expo supports:</p><h3>Continuous Native Generation</h3><p>Instead of always treating:</p><pre>android/<br>ios/</pre><p>as manually maintained source code, Expo can generate native projects from configuration.</p><p>Conceptually:</p><pre>app.json / app.config<br>        +<br>package.json<br>        +<br>Config Plugins<br>        ↓<br>      Prebuild<br>        ↓<br>   ┌──────────┐<br>   ↓          ↓<br>android/     ios/</pre><p>This can reduce a lot of manual native-project maintenance.</p><p>And it changes how we think about React Native infrastructure.</p><p>Instead of:</p><pre>Edit native project manually<br>       ↓<br>Remember every change<br>       ↓<br>Maintain forever</pre><p>we can often move toward:</p><pre>Describe configuration<br>       ↓<br>Generate native project<br>       ↓<br>Build</pre><p>We’ll go deep into this in Chapter 26.</p><h3>But Does Expo Force CNG?</h3><p>No.</p><p>This is another important distinction.</p><p>Using Expo doesn’t mean:</p><pre>You MUST delete android/<br>You MUST delete ios/<br>You MUST use EAS<br>You MUST use Expo Go</pre><p>Expo tooling can also work with native projects you maintain directly.</p><p>And Expo development builds can be compiled locally with Android Studio/Xcode tooling or through EAS Build. <a href="https://docs.expo.dev/workflow/overview/?utm_source=chatgpt.com">Expo Documentation</a></p><p>This means Expo is less of a locked box than many developers assume.</p><h3>What About EAS?</h3><p>Another misconception:</p><pre>Expo<br> =<br>EAS Cloud</pre><p>Not exactly.</p><p>EAS provides services such as:</p><pre>EAS Build<br>EAS Update<br>EAS Submit<br>EAS Workflows</pre><p>But an Expo app can still be compiled using your own native toolchain or other CI infrastructure. Expo’s documentation explicitly notes that production Expo apps can be built locally or using CI systems capable of compiling Android and iOS applications. <a href="https://docs.expo.dev/deploy/build-project/?utm_source=chatgpt.com">Expo Documentation</a></p><p>Think:</p><pre>Expo<br> ↓<br>Framework + Tooling</pre><pre>EAS<br> ↓<br>Optional Cloud Services</pre><p>That’s a much better mental model.</p><h3>So Why Would I Still Choose Framework-less React Native?</h3><p>Because Expo isn’t automatically the right architectural choice for every organization.</p><p>Imagine you’re joining a company with this:</p><pre>Existing iOS App<br>       +<br>Existing Android App<br>       +<br>Large Native Teams<br>       +<br>Custom Build Infrastructure<br>       +<br>React Native Embedded<br>Inside Existing Screens</pre><p>Now we’re talking about a <strong>brownfield application</strong>.</p><p>React Native itself specifically notes that organizations such as Meta and Microsoft build their own frameworks when they need deep integration with brownfield/native applications. <a href="https://reactnative.dev/blog/2024/06/25/use-a-framework-to-build-react-native-apps?utm_source=chatgpt.com">React Native</a></p><p>In such environments, direct control over:</p><pre>Xcode project</pre><pre>Gradle configuration</pre><pre>Native lifecycle</pre><pre>Build system</pre><pre>Internal SDKs</pre><pre>Native dependency management</pre><p>may be central to the architecture.</p><p>Adding another framework layer might not provide enough value.</p><h3>When I Would Start With Expo</h3><p>For a new React Native application in 2026, Expo would be my <strong>first option to evaluate</strong>.</p><p>Especially for:</p><pre>New product</pre><pre>Startup app</pre><pre>E-commerce</pre><pre>Travel app</pre><pre>Social app</pre><pre>Enterprise greenfield app</pre><pre>Internal company application</pre><p>where we want:</p><pre>Fast setup<br>   +<br>Good native capabilities<br>   +<br>Development builds<br>   +<br>Standardized configuration<br>   +<br>Simpler upgrades<br>   +<br>Optional cloud builds / updates</pre><p>This also aligns with React Native’s current recommendation to use a framework like Expo for new applications. <a href="https://reactnative.dev/?utm_source=chatgpt.com">React Native</a></p><h3>When I Would Evaluate Framework-less RN</h3><p>I’d seriously consider managing React Native without a framework when the application has constraints such as:</p><pre>Existing large native application</pre><pre>Heavy brownfield integration</pre><pre>Highly customized native build system</pre><pre>Organization-specific native architecture</pre><pre>Native project must remain source of truth</pre><pre>Specialized infrastructure incompatible<br>with the desired Expo workflow</pre><p>Notice what isn’t on that list:</p><pre>Need Camera ❌</pre><pre>Need Bluetooth ❌</pre><pre>Need Native SDK ❌</pre><pre>Need Swift ❌</pre><pre>Need Kotlin ❌</pre><p>Those alone are no longer good reasons to say:</p><blockquote><em>“We cannot use Expo.”</em></blockquote><h3>What About Performance?</h3><p>Another common question:</p><blockquote><strong><em>Is React Native CLI faster than Expo?</em></strong></blockquote><p>Be careful with this question.</p><p>Remember our <strong>TSX → Pixels</strong> Quick Dive.</p><p>Eventually both applications reach:</p><pre>React<br> ↓<br>Fiber<br> ↓<br>Fabric<br> ↓<br>Native Platform<br> ↓<br>Pixels</pre><p>So simply saying:</p><pre>Expo = slower<br>CLI = faster</pre><p>is far too simplistic.</p><p>Performance depends much more on things like:</p><pre>Component architecture</pre><pre>JavaScript work</pre><pre>List rendering</pre><pre>Images</pre><pre>Animations</pre><pre>Native SDKs</pre><pre>Network behavior</pre><pre>State management</pre><pre>Layout</pre><pre>Native drawing</pre><p>Choose the architecture first.</p><p>Then measure actual performance.</p><h3>What About App Size?</h3><p>Expo applications may include framework/runtime dependencies you wouldn’t necessarily select in a manually assembled setup.</p><p>But again, the useful engineering question isn’t:</p><blockquote><em>“Which one produces the smallest Hello World?”</em></blockquote><p>It’s:</p><blockquote><strong><em>Does the resulting production application meet our size, startup, performance, and operational requirements?</em></strong></blockquote><p>Measure your actual application.</p><p>Don’t architect a large product around a generic benchmark.</p><h3>What About Upgrades?</h3><p>This is one area where framework thinking becomes useful.</p><p>React Native applications combine:</p><pre>React Native</pre><pre>Android tooling</pre><pre>iOS tooling</pre><pre>Native dependencies</pre><pre>JavaScript dependencies</pre><p>Upgrades can therefore affect many layers.</p><p>Expo provides SDK versions, tooling, configuration conventions, and CNG workflows that can reduce some of the manual coordination involved.</p><p>Framework-less React Native gives you more direct control — but your team also owns more of the upgrade process.</p><p>Again:</p><pre>Control<br>   ↕<br>Maintenance</pre><p>More control isn’t free.</p><h3>My 2026 Decision Tree</h3><p>Here’s the mental model I’d use today.</p><pre>Starting a new React Native app?<br>             ↓<br>            YES<br>             ↓<br>      Evaluate Expo First<br>             ↓<br> Do requirements work well with<br> Expo + Development Builds?<br>       ↙              ↘<br>     YES               NO<br>      ↓                 ↓<br>Use Expo         Investigate the<br>                 actual constraint<br>                       ↓<br>             Does it require direct/<br>             unusual native ownership?<br>                  ↙          ↘<br>                YES           NO<br>                 ↓             ↓<br>         Framework-less      Expo may<br>         RN may fit          still fit</pre><p>For an existing native application:</p><pre>Existing Android / iOS architecture<br>              ↓<br>Understand native constraints first<br>              ↓<br>Choose integration strategy</pre><p>That’s much more useful than:</p><pre>Expo vs CLI<br>Who wins?</pre><h3>The Architecture Difference in One Picture</h3><h3>Expo</h3><pre>            YOUR APP<br>                ↓<br>        Expo Framework<br>                ↓<br> ┌──────────────┼──────────────┐<br> ↓              ↓              ↓<br>Router       Expo SDK      Config/CNG<br>                ↓<br>        Development Build<br>                ↓<br>          React Native<br>                ↓<br>         Android / iOS<br><br>Optional:<br>EAS Build / Update / Submit</pre><h3>Framework-less React Native</h3><pre>            YOUR APP<br>                ↓<br>          React Native<br>                ↓<br>       android/ + ios/<br>                ↓<br>      Your Architecture<br>                ↓<br> ┌──────────────┼──────────────┐<br> ↓              ↓              ↓<br>Navigation   Native Config    CI/CD<br> ↓              ↓              ↓<br>Your Choice   Your Team      Your Tools<br>                ↓<br>         Android / iOS</pre><p>Neither diagram means:</p><pre>Good vs Bad</pre><p>They mean:</p><pre>Framework<br>vs<br>More infrastructure ownership</pre><h3>Interview Corner 🎯</h3><h3>What’s the difference between Expo and React Native CLI?</h3><p>Both produce React Native applications.</p><p>Expo provides a framework and ecosystem around React Native, including development tooling, native modules, configuration, development builds, CNG and optional EAS services.</p><p>Framework-less React Native gives the team direct responsibility for assembling and maintaining more of the native/application infrastructure.</p><h3>Is Expo only for beginners?</h3><p>No.</p><p>That mental model is outdated.</p><p>React Native currently recommends using a framework such as Expo for new applications. <a href="https://reactnative.dev/?utm_source=chatgpt.com">React Native</a></p><h3>Can Expo use custom native code?</h3><p>Yes.</p><p>Development builds can contain native libraries and custom native configuration. <a href="https://docs.expo.dev/develop/development-builds/introduction/?utm_source=chatgpt.com">Expo Documentation</a></p><h3>Do Expo applications need EAS?</h3><p>No.</p><p>EAS is an optional set of services. Expo projects can also use local native tooling and other compatible CI systems. <a href="https://docs.expo.dev/develop/development-builds/introduction/?utm_source=chatgpt.com">Expo Documentation</a></p><h3>When would you choose Expo?</h3><p>For many greenfield React Native applications, I’d evaluate Expo first because it provides an established framework, development workflow and native tooling.</p><h3>When might framework-less React Native make sense?</h3><p>When the application has unusual native constraints, significant brownfield integration, heavily customized build infrastructure, or an organizational requirement to directly own and manage native projects.</p><h3>My Biggest Learning</h3><p>My old decision tree was:</p><pre>Simple App<br>   ↓<br>Expo</pre><pre>Complex App<br>   ↓<br>React Native CLI</pre><p>That’s no longer how I think about it.</p><p>My current mental model is:</p><pre>New React Native App<br>        ↓<br>Can an established framework<br>handle our requirements?<br>        ↓<br>      Expo</pre><p>and:</p><pre>Unusual Native / Brownfield /<br>Infrastructure Constraints<br>        ↓<br>Evaluate framework-less RN</pre><p>The biggest lesson is:</p><blockquote><strong><em>Don’t choose React Native architecture based on how complex the UI is. Choose it based on how much native and application infrastructure your team needs to own.</em></strong></blockquote><h3>Key Takeaways</h3><ul><li>Expo and React Native are not competing runtimes.</li><li>An Expo application is still a React Native application. <a href="https://docs.expo.dev/workflow/overview/?utm_source=chatgpt.com">Expo Documentation</a></li><li>React Native currently recommends a framework such as Expo for new apps. <a href="https://reactnative.dev/?utm_source=chatgpt.com">React Native</a></li><li>Expo Go should not define your understanding of modern Expo.</li><li>Development builds support project-specific native dependencies and configuration. <a href="https://docs.expo.dev/develop/development-builds/introduction/?utm_source=chatgpt.com">Expo Documentation</a></li><li>Expo can work with Swift, Kotlin, native SDKs, and native configuration.</li><li>CNG can generate native projects from reproducible configuration.</li><li>EAS is optional.</li><li>Framework-less React Native remains valuable for certain brownfield and highly customized native architectures.</li><li>More native control also means more infrastructure ownership and maintenance.</li><li>For a new application in 2026, <strong>Expo is a strong default to evaluate first — not merely the beginner option.</strong></li></ul><h3>What’s Next?</h3><p>There’s one piece of Expo we’ve mentioned repeatedly:</p><pre>npx expo prebuild</pre><p>It sounds simple.</p><p>But this command can:</p><pre>Read app configuration<br>        ↓<br>Choose native templates<br>        ↓<br>Generate android/<br>        ↓<br>Generate ios/<br>        ↓<br>Apply config plugins<br>        ↓<br>Configure native dependencies</pre><p>So what exactly happens internally?</p><p>And more importantly:</p><blockquote><strong><em>If </em></strong><strong><em>android/ and </em></strong><strong><em>ios/ can be generated, should we even commit them to Git?</em></strong></blockquote><p>That’s where we’re going next.</p><h3>Inside React Native — Chapter 26</h3><h3>What Really Happens When You Run npx expo prebuild?</h3><h3>CNG → Config Plugins → Native Projects → Autolinking → Android/iOS</h3><h3>💙 Quick Question for You</h3><p>You’re starting a <strong>brand-new production React Native application today</strong>.</p><p>Would you choose:</p><p><strong>A. Expo</strong><br><strong>B. Framework-less React Native</strong><br><strong>C. It depends on the native/infrastructure requirements</strong></p><p>And most importantly — <strong>why?</strong> 👇</p><p><strong>— @</strong><a href="https://medium.com/@chandanvijayadeva.cv"><strong>learnwithchandu</strong></a></p><p><strong>Suggested Medium tags:</strong> React Native · Expo · Mobile Development · Software Architecture · JavaScript</p><p>For readers who want the official current guidance alongside your mental model: <a href="https://reactnative.dev/?utm_source=chatgpt.com">React Native — Get a head start with a framework</a> and <a href="https://docs.expo.dev/workflow/overview/?utm_source=chatgpt.com">Expo — Development workflow</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04a86d1b02e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[⚡ Inside React Native — Quick Dive]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/inside-react-native-quick-dive-e37ae5aaf684?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e37ae5aaf684</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 09:47:44 GMT</pubDate>
            <atom:updated>2026-08-24T09:47:44.824Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZCv8k4S_GXKMmK6IsP5BTg.png" /></figure><h3>From TSX to Pixels: What Actually Happens Before Your React Native UI Appears?</h3><p>That gives readers a visual recap of everything we’ve been building toward before we move into <strong>Expo vs React Native Community CLI</strong>.</p><p>Here is the Medium-ready version.</p><h3>⚡ From TSX to Pixels</h3><h3>What Actually Happens Inside React Native Before Your UI Appears?</h3><h3>A 6-minute visual mental model for Metro, Hermes, Fiber, Fabric, Yoga, Native Views, and the GPU</h3><p>We write:</p><pre>function DestinationCard({ name }: Props) {<br>  return &lt;Text&gt;{name}&lt;/Text&gt;;<br>}</pre><p>Then somehow this appears:</p><pre>📱<br>┌─────────────────────┐<br>│                     │<br>│     Bengaluru       │<br>│                     │<br>└─────────────────────┘</pre><p>It feels almost immediate.</p><p>So it’s easy to develop this mental model:</p><pre>TSX<br> ↓<br>📱 UI</pre><p>But that’s not what actually happens.</p><p>Between your .tsx file and the pixels the user sees, React Native crosses <strong>multiple systems</strong>.</p><pre>TSX<br> ↓<br>Transform<br> ↓<br>Metro<br> ↓<br>Hermes<br> ↓<br>React<br> ↓<br>Fiber<br> ↓<br>Fabric<br> ↓<br>Yoga<br> ↓<br>Native Views<br> ↓<br>GPU<br> ↓<br>📱 Pixels</pre><p>And understanding these layers completely changes how you think about React Native performance.</p><h3>The Screen Is the Final Result — Not the Starting Point</h3><p>When we write:</p><pre>&lt;View&gt;<br>  &lt;Text&gt;Hello React Native&lt;/Text&gt;<br>&lt;/View&gt;</pre><p>View doesn&#39;t immediately become an Android View.</p><p>Text doesn&#39;t immediately become pixels.</p><p>Instead, our code travels through several stages.</p><p>A useful way to understand them is to divide the pipeline into <strong>three worlds</strong>.</p><h3>🛠️ Build World</h3><pre>TypeScript<br>   ↓<br>JSX Transform<br>   ↓<br>Metro</pre><p>This prepares our application code.</p><h3>⚛️ React Native Runtime World</h3><pre>Hermes<br>   ↓<br>React<br>   ↓<br>Fiber<br>   ↓<br>Fabric<br>   ↓<br>Yoga</pre><p>This executes our application and calculates what the interface should become.</p><h3>📱 Platform World</h3><pre>Native Views<br>    ↓<br>Drawing / Compositing<br>    ↓<br>GPU<br>    ↓<br>Pixels</pre><p>Android or iOS ultimately owns the visible interface.</p><p>Now let’s follow the journey.</p><h3>1. TSX — Your UI Description</h3><p>Everything starts with the code we write:</p><pre>function DestinationCard({ name }: Props) {<br>  return (<br>    &lt;View&gt;<br>      &lt;Text&gt;{name}&lt;/Text&gt;<br>    &lt;/View&gt;<br>  );<br>}</pre><p>This describes the UI we <strong>want</strong>.</p><p>It isn’t the UI itself.</p><p>TypeScript also helps us during development by understanding:</p><pre>Types<br>Imports<br>Symbols<br>References<br>Errors</pre><p>But TypeScript types don’t travel into Hermes as runtime objects.</p><p>They are primarily development-time information.</p><h3>2. TypeScript + JSX Transform</h3><p>The device doesn’t execute JSX like:</p><pre>&lt;Text&gt;Hello&lt;/Text&gt;</pre><p>directly.</p><p>The toolchain transforms JSX into JavaScript that creates React elements, while TypeScript-only syntax is removed.</p><p>Conceptually:</p><pre>TSX<br> ↓<br>Transform<br> ↓<br>Executable JavaScript</pre><p>One useful performance distinction already appears here:</p><blockquote><em>If this stage is slow, you’ll normally feel it during development or builds — not as a dropped frame while using an already-running production screen.</em></blockquote><h3>3. Metro Builds the Module Graph</h3><p>Now Metro enters.</p><p>Metro starts from your application’s entry point and follows imports.</p><p>Imagine:</p><pre>App.tsx<br> │<br> ├── Home.tsx<br> │    ├── Header.tsx<br> │    └── DestinationCard.tsx<br> │<br> ├── api.ts<br> │<br> └── utils.ts</pre><p>Metro resolves that dependency graph and prepares the JavaScript needed by the application.</p><p>Conceptually:</p><pre>Source Files<br>     ↓<br>Module Resolution<br>     ↓<br>Dependency Graph<br>     ↓<br>Transform<br>     ↓<br>Bundle</pre><p>This is why imports matter.</p><p>A seemingly harmless import can bring more JavaScript into your application, increasing the amount of code that may need to be packaged, loaded, or evaluated.</p><h3>4. Hermes Executes the Program</h3><p>Now the application launches.</p><p>Android or iOS starts the native process and React Native initializes its JavaScript runtime.</p><p>In modern React Native, that runtime is typically:</p><h3>Hermes ⚡</h3><p>Conceptually:</p><pre>JavaScript / Hermes Bytecode<br>          ↓<br>        Hermes<br>          ↓<br>Application Executes</pre><p>Top-level modules begin executing.</p><p>Eventually React Native reaches your application’s root component and React begins rendering.</p><p>This gives us an important startup-performance clue.</p><p>Suppose your module does this:</p><pre>const hugeResult = calculateSomethingVeryExpensive();<br><br>export function App() {<br>  return &lt;Home /&gt;;<br>}</pre><p>That expensive calculation happens before the user gets much value from the screen.</p><p>So sometimes:</p><blockquote><strong><em>A slow first screen isn’t a rendering problem at all.</em></strong></blockquote><p>It may be JavaScript initialization.</p><h3>🧠 Pause &amp; Think</h3><p>Imagine the first screen takes <strong>two seconds</strong> to appear.</p><p>The user hasn’t tapped anything yet.</p><p>Where would you investigate?</p><p>Don’t immediately blame Fabric.</p><p>Think about:</p><pre>Bundle size<br>     ↓<br>Module evaluation<br>     ↓<br>Synchronous initialization<br>     ↓<br>Initial React render</pre><p>Performance debugging becomes much easier when you ask:</p><blockquote><strong><em>Which layer is actually late?</em></strong></blockquote><h3>5. React Creates Elements</h3><p>React calls our components.</p><pre>DestinationCard({<br>  name: &quot;Bengaluru&quot;<br>});</pre><p>The component returns React elements.</p><p>Think of an element as a lightweight description:</p><pre>Type<br>Props<br>Children<br>Key</pre><p>It might conceptually say:</p><pre>Text<br> └── &quot;Bengaluru&quot;</pre><p>But this is still <strong>not an Android or iOS view</strong>.</p><p>React is describing what it wants.</p><h3>6. Fiber Decides What Changed</h3><p>Now React’s Fiber architecture comes into play.</p><p>React compares the new UI description with previous work.</p><p>Conceptually:</p><pre>Previous Tree</pre><pre>      VS</pre><pre>New Tree</pre><pre>      ↓</pre><pre>Reconciliation</pre><p>React asks questions such as:</p><pre>Same element type?</pre><pre>Same key?</pre><pre>Same position?</pre><pre>Can existing work be reused?</pre><pre>What needs updating?</pre><p>This is why:</p><pre>Parent Render</pre><p>doesn’t necessarily mean:</p><pre>Recreate Entire Native Screen</pre><p>React may execute components and eventually discover that only a tiny part of the host interface needs changing.</p><h3>7. Fabric Builds the Shadow Tree</h3><p>For React Native host components such as:</p><pre>&lt;View /&gt;<br>&lt;Text /&gt;<br>&lt;Image /&gt;</pre><p>Fabric represents the native-facing interface using <strong>Shadow Nodes</strong>.</p><p>A simplified picture:</p><pre>React Elements<br>      ↓<br>Fiber<br>      ↓<br>Fabric<br>      ↓<br>Shadow Tree</pre><p>These nodes describe things such as:</p><pre>Props<br>Children<br>State<br>Layout information</pre><p>But again:</p><blockquote><strong><em>Shadow Nodes are not the visible Android/iOS views.</em></strong></blockquote><p>Think of the Shadow Tree as React Native’s cross-platform description of the native interface it intends to produce.</p><h3>8. Yoga Calculates Layout</h3><p>Now we know <strong>what</strong> components should exist.</p><p>But we still need to answer:</p><blockquote><em>Where should they appear?</em></blockquote><p>Suppose:</p><pre>&lt;View<br>  style={{<br>    flex: 1,<br>    padding: 16<br>  }}<br>/&gt;</pre><p>flex: 1 isn&#39;t a pixel coordinate.</p><p>Yoga calculates concrete layout geometry.</p><p>Conceptually:</p><pre>Styles<br>   +<br>Constraints<br>   ↓<br> Yoga<br>   ↓<br>x<br>y<br>width<br>height</pre><p>Now React Native understands the geometry of the interface.</p><p>This is why constantly changing layout-related properties can become expensive in some scenarios.</p><p>Sometimes a visual effect can be achieved more efficiently with a transform rather than continuously forcing geometry changes.</p><h3>9. Native Views Are Mounted</h3><p>React has finished preparing the new tree.</p><p>Now the result needs to reach the actual platform.</p><p>Conceptually:</p><pre>New Shadow Tree<br>      ↓<br>Compare Mounted Tree<br>      ↓<br>Mounting Instructions</pre><p>Those instructions may include:</p><pre>CREATE<br>INSERT<br>UPDATE<br>REMOVE<br>REORDER</pre><p>The native platform applies the required changes to real platform UI objects.</p><p>Now we’re finally dealing with actual Android/iOS interface infrastructure.</p><pre>React Native Description<br>          ↓<br>Native Platform Views</pre><p>But we’re still not quite at pixels.</p><h3>10. GPU → Pixels 📱</h3><p>Native views still need to be drawn.</p><p>The operating system handles drawing, layers, surfaces and compositing.</p><p>Eventually the GPU helps compose the frame that appears on the display.</p><pre>Native Views<br>     ↓<br>Drawing<br>     ↓<br>Layers / Surfaces<br>     ↓<br>Compositor<br>     ↓<br>GPU<br>     ↓<br>📱 Pixels</pre><p>At <strong>60 Hz</strong>, the display has roughly:</p><pre>16.67 ms</pre><p>between frame opportunities.</p><p>If something takes too long, the user may see:</p><pre>Jank<br>Dropped Frames<br>Delayed Interaction<br>Slow Screen Transition</pre><p>But here’s the important part.</p><p>The problem could originate from very different places.</p><pre>Heavy JavaScript<br>      OR<br>Excessive React Work<br>      OR<br>Layout Cost<br>      OR<br>UI-thread Work<br>      OR<br>Native Drawing<br>      OR<br>GPU Overdraw</pre><p>So saying:</p><blockquote><em>“React Native is slow.”</em></blockquote><p>doesn’t tell us much.</p><p>The better question is:</p><blockquote><strong><em>Which layer missed its budget?</em></strong></blockquote><h3>What Happens After setState()?</h3><p>Here’s another important distinction.</p><p>Suppose:</p><pre>setName(&quot;Mysuru&quot;);</pre><p>runs.</p><p>React Native does <strong>not</strong> restart this entire pipeline:</p><pre>TypeScript<br> ↓<br>Metro<br> ↓<br>Hermes restart<br> ↓<br>Everything again</pre><p>Instead, the running application already exists.</p><p>The update looks more like:</p><pre>setState()<br>    ↓<br>React schedules work<br>    ↓<br>Components render<br>    ↓<br>Fiber reconciles<br>    ↓<br>Fabric prepares changes<br>    ↓<br>Yoga recalculates affected layout<br>    ↓<br>Mounting updates native views<br>    ↓<br>Platform draws next frame</pre><p>Metro isn’t rebuilding your production application every time state changes.</p><p>Hermes isn’t restarting.</p><p>We’re updating the already-running application.</p><h3>⚡ The Performance Rule I Want to Remember</h3><p>After understanding this pipeline, my biggest takeaway is simple:</p><blockquote><strong><em>Optimize the layer that is actually late.</em></strong></blockquote><p>If startup is slow:</p><pre>Measure startup + JS initialization</pre><p>If React commits are expensive:</p><pre>Measure rendering</pre><p>If animations stutter:</p><pre>Check JS thread<br>UI thread<br>layout<br>drawing<br>GPU</pre><p>If a native screen takes time to mount:</p><pre>Inspect native/UI work</pre><p>Don’t apply React.memo() because the screen &quot;feels slow.&quot;</p><p>Don’t blame Hermes because scrolling dropped frames.</p><p>Don’t optimize Metro when your production problem is GPU overdraw.</p><p><strong>Measure first. Then optimize the responsible layer.</strong></p><h3>The Complete Mental Model 🧠</h3><p>Here’s the entire journey:</p><pre>TSX SOURCE<br>    ↓<br>TypeScript + JSX Transform<br>    ↓<br>METRO<br>    ↓<br>HERMES<br>    ↓<br>REACT ELEMENTS<br>    ↓<br>FIBER<br>    ↓<br>FABRIC SHADOW TREE<br>    ↓<br>YOGA<br>    ↓<br>MOUNTING<br>    ↓<br>NATIVE VIEWS<br>    ↓<br>OS DRAWING / COMPOSITOR<br>    ↓<br>GPU<br>    ↓<br>📱 PIXELS</pre><p>Or remember it as one sentence:</p><blockquote><strong><em>TypeScript understands your source. Metro connects your modules. Hermes executes the program. React describes the interface. Fiber decides what changed. Fabric represents the native-facing tree. Yoga calculates geometry. Mounting synchronizes native views. The platform and GPU finally turn everything into pixels.</em></strong></blockquote><p>Once you can point to the layer where work happens, React Native performance stops looking like one mysterious problem.</p><p>It becomes a collection of <strong>smaller problems with different causes, measurements, and fixes.</strong></p><h3>🎯 Quick Challenge</h3><p>Imagine this bug:</p><blockquote><strong><em>Scrolling is perfectly smooth, but opening the Product Details screen freezes for 400 ms.</em></strong></blockquote><p>Where would you investigate first?</p><p><strong>JavaScript initialization? React rendering? Fabric/Yoga? Native mounting? GPU?</strong></p><p>And more importantly:</p><blockquote><strong><em>What evidence would make you move your investigation to the next layer?</em></strong></blockquote><p>Drop your answer in the comments 👇</p><h3>What’s Next?</h3><p>This was a <strong>Quick Dive</strong> rather than our next numbered chapter.</p><p>We’ve now connected the complete journey:</p><pre>Your Code<br>   ↓<br>React Native Internals<br>   ↓<br>Native Platform<br>   ↓<br>Pixels</pre><p>Next, we’ll return to the main series with:</p><h3>Inside React Native — Chapter 25</h3><h3>Expo vs React Native Community CLI — Which Should You Choose in 2026?</h3><p>And instead of the outdated:</p><pre>Expo = Beginner<br>CLI = Professional</pre><p>we’ll compare them from the perspective that actually matters:</p><p><strong>architecture, native control, development workflow, builds, enterprise requirements, and maintainability.</strong></p><p><strong>—</strong><a href="https://medium.com/@chandanvijayadeva.cv"><strong> @learnwithchandu</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e37ae5aaf684" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Does Expo Actually Work Internally?]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/how-does-expo-actually-work-internally-865df4a19040?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/865df4a19040</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 09:04:13 GMT</pubDate>
            <atom:updated>2026-08-24T09:04:13.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*laGVDCWLbjl5Ss1glNlN1w.png" /><figcaption>How Does Expo Actually Work Internally?</figcaption></figure><h3>Inside React Native — Chapter 24</h3><h3>Expo CLI → Metro → Development Build → Expo Modules → React Native → Native App</h3><p>In Chapter 23, we followed our React Native application all the way from JavaScript to native UI:</p><pre>TS / JS / JSX<br>      ↓<br>    Metro<br>      ↓<br>    Hermes<br>      ↓<br>    React<br>      ↓<br>    Fiber<br>      ↓<br>    Fabric<br>      ↓<br> Android / iOS<br>      ↓<br> Native UI 📱</pre><p>But when starting a React Native application today, we constantly hear:</p><blockquote><strong><em>“Just use Expo.”</em></strong></blockquote><p>That creates a few interesting questions.</p><p>Is Expo another version of React Native?</p><p>Does Expo replace Metro?</p><p>Does it replace Hermes?</p><p>Does an Expo app still use Fabric and JSI?</p><p>And the biggest question:</p><blockquote><strong><em>What exactly is Expo doing internally?</em></strong></blockquote><p>Let’s find out.</p><h3>First — Expo Is Still React Native</h3><p>This is the most important thing to understand.</p><p>Don’t think:</p><pre>React Native    OR    Expo</pre><p>Think:</p><pre>       Your App<br>           ↓<br>          Expo<br>           ↓<br>     React Native<br>           ↓<br>     Android / iOS</pre><p>Expo provides a <strong>framework and tooling ecosystem around React Native</strong>.</p><p>Your application still ultimately uses React Native.</p><p>So underneath an Expo application, concepts from Chapter 23 still exist:</p><pre>Metro<br>Hermes<br>React<br>Fiber<br>JSI<br>Fabric<br>TurboModules<br>Android / iOS</pre><p>Expo doesn’t replace those layers.</p><p>It helps us <strong>build, configure, develop, and ship applications around them</strong>.</p><h3>Then What Does Expo Add?</h3><p>Imagine we start directly with React Native.</p><p>React Native gives us the core technology needed to build native applications with React.</p><p>But a production application needs much more:</p><pre>Routing<br>Camera<br>Notifications<br>Location<br>Splash Screen<br>Fonts<br>Build Configuration<br>App Icons<br>Native Permissions<br>Deep Linking<br>Updates<br>Build Pipelines</pre><p>You can assemble these pieces yourself.</p><p>Or you can use a framework that provides conventions and tools around them.</p><p>That’s where Expo comes in.</p><p>A simplified view:</p><pre>                  EXPO</pre><pre>        ┌──────────┼──────────┐<br>        ↓          ↓          ↓<br>     Tooling    Libraries   Services</pre><pre>        ↓          ↓          ↓</pre><pre>    Expo CLI    Expo SDK      EAS<br>    Router      Camera        Build<br>    Prebuild    Location      Update<br>    Config      Notifications Submit</pre><p>And underneath:</p><pre>            React Native<br>                 ↓<br>          Android / iOS</pre><h3>What Happens When We Create an Expo App?</h3><p>We might run:</p><pre>npx create-expo-app@latest</pre><p>Expo creates a React Native project configured to use Expo’s tools.</p><p>You may initially see something like:</p><pre>app/<br>components/<br>assets/<br>app.json<br>package.json</pre><p>And something seems to be missing:</p><pre>android/ ❌</pre><pre>ios/ ❌</pre><p>Wait…</p><p>If React Native ultimately needs Android and iOS native projects, where did they go?</p><p>This is where Expo’s modern architecture becomes interesting.</p><h3>Continuous Native Generation</h3><p>Expo supports a workflow called:</p><h3>CNG — Continuous Native Generation</h3><p>Instead of treating:</p><pre>android/<br>ios/</pre><p>as files you must manually maintain forever, Expo can generate those native projects from your configuration when they are needed.</p><p>Think:</p><pre>app.json<br>   +<br>package.json<br>   +<br>Expo Config<br>   +<br>Config Plugins<br>      ↓<br>   Prebuild<br>      ↓<br> ┌─────────┐<br> ↓         ↓<br>android/  ios/</pre><p>This is one of the reasons an Expo project can initially look much cleaner.</p><p>The native applications haven’t disappeared.</p><p>They can be <strong>generated</strong>.</p><p>We’ll go deep into npx expo prebuild in Chapter 26.</p><p>For now, remember:</p><blockquote><strong><em>Expo doesn’t remove native projects. It can generate them from configuration.</em></strong></blockquote><h3>What Happens When We Run npx expo start?</h3><p>This command sometimes creates another misconception.</p><p>Developers may think:</p><pre>expo start<br>     ↓<br>Expo executes my app</pre><p>Not exactly.</p><p>A simplified flow is:</p><pre>npx expo start<br>      ↓<br>   Expo CLI<br>      ↓<br>Start / configure Metro<br>      ↓<br>Transform JS / TS<br>      ↓<br>Development Server<br>      ↓<br>Running Native Client<br>      ↓<br>React Native App</pre><p>Notice something familiar?</p><h3>Metro.</h3><p>Expo still uses Metro.</p><p>Expo CLI provides tooling and configuration around the React Native development workflow.</p><p>So:</p><pre>Expo CLI<br>   ↓<br>Metro<br>   ↓<br>React Native</pre><p>not:</p><pre>Expo<br>   ↓<br>Some completely different renderer</pre><h3>🧠 Pause &amp; Think</h3><p>Suppose you write:</p><pre>&lt;View&gt;<br>  &lt;Text&gt;Hello Expo&lt;/Text&gt;<br>&lt;/View&gt;</pre><p>Does Expo render that UI?</p><p>Think about Chapter 23.</p><p>The answer is:</p><blockquote><strong><em>React Native still renders the application.</em></strong></blockquote><p>The simplified pipeline remains:</p><pre>React<br> ↓<br>Fiber<br> ↓<br>React Native Renderer<br> ↓<br>Fabric<br> ↓<br>Native UI</pre><p>Expo sits around this ecosystem and makes many development and native-configuration workflows easier.</p><h3>Then What Is Expo Go?</h3><p>This is where many developers learned Expo.</p><p>You run:</p><pre>npx expo start</pre><p>scan a QR code…</p><p>and your app opens inside:</p><h3>Expo Go</h3><p>It feels magical.</p><p>But Expo Go is actually easier to understand than it looks.</p><p>Think of Expo Go as a <strong>prebuilt native React Native application</strong> that already contains a collection of native capabilities.</p><p>Conceptually:</p><pre>Expo Go</pre><pre>┌───────────────────────────┐<br>│ Prebuilt Native App       │<br>│                           │<br>│ Expo Modules              │<br>│ React Native Runtime      │<br>│ Native Capabilities       │<br>└───────────────────────────┘<br>             ↑<br>             │<br>       Your JS Bundle<br>             │<br>             ↑<br>           Metro</pre><p>Your JavaScript loads into that already-built native application.</p><p>That’s why you can start experimenting so quickly.</p><p>No Android build.</p><p>No iOS build.</p><p>Just:</p><pre>Write JS<br>   ↓<br>Metro<br>   ↓<br>Expo Go</pre><p>Very convenient.</p><p>But there’s an important limitation.</p><h3>Why Expo Go Cannot Run Everything</h3><p>Imagine your application needs a native library:</p><pre>SuperAwesomeScanner</pre><p>and that library contains custom:</p><pre>Kotlin<br>+<br>Swift</pre><p>code.</p><p>You install:</p><pre>npm install super-awesome-scanner</pre><p>JavaScript now knows about the package.</p><p>But does the Expo Go application installed on your phone suddenly contain that new Kotlin and Swift code?</p><p>No.</p><p>Expo Go was already compiled.</p><p>Its native binary is fixed.</p><p>Think:</p><pre>Expo Go Native Binary</pre><pre>Camera       ✅<br>Location     ✅<br>Some Expo APIs ✅</pre><pre>Your New Native SDK ❌</pre><p>JavaScript cannot magically inject arbitrary native code into an already compiled application.</p><p>And this leads us to the modern Expo development workflow.</p><h3>Meet Development Builds 🚀</h3><p>For real production-grade Expo applications, Expo recommends <strong>development builds</strong>.</p><p>A development build is essentially:</p><blockquote><strong><em>Your own native development version of the app.</em></strong></blockquote><p>Instead of:</p><pre>Expo&#39;s Native App<br>      ↓<br>Expo Go</pre><p>you create:</p><pre>YOUR Native App<br>      ↓<br>Your Native Dependencies<br>      ↓<br>expo-dev-client<br>      ↓<br>Your JavaScript</pre><p>Now if your application needs:</p><pre>Camera<br>Maps<br>Custom SDK<br>Native Library<br>Swift Code<br>Kotlin Code</pre><p>those native dependencies can be compiled into <strong>your development build</strong>.</p><h3>Expo Go vs Development Build</h3><p>This distinction is extremely important.</p><h3>Expo Go</h3><pre>Prebuilt by Expo<br>      ↓<br>Fixed native capabilities<br>      ↓<br>Load your JS</pre><p>Great for:</p><pre>Learning<br>Experimenting<br>Quick prototypes</pre><h3>Development Build</h3><pre>Your Native App<br>      ↓<br>Your Native Modules<br>      ↓<br>Your Configuration<br>      ↓<br>expo-dev-client<br>      ↓<br>Your JS</pre><p>Designed for building real applications.</p><p>So the old statement:</p><blockquote><strong><em>“Expo can’t use custom native code.”</em></strong></blockquote><p>is outdated.</p><p>Development builds allow native libraries and native customization.</p><h3>Where Do Expo Modules Fit?</h3><p>Suppose we want location:</p><pre>import * as Location from &quot;expo-location&quot;;<br><br>const location =<br>  await Location.getCurrentPositionAsync();</pre><p>From JavaScript, this looks simple.</p><p>But GPS access isn’t implemented in JavaScript.</p><p>Underneath:</p><pre>Your JavaScript<br>      ↓<br>expo-location<br>      ↓<br>Expo Module<br>      ↓<br>Native Platform API<br>      ↓<br>Android / iOS Location</pre><p>The same general idea applies to modules for things such as:</p><pre>Camera<br>Notifications<br>Sensors<br>Secure Storage<br>Image Picker<br>Device APIs</pre><p>Expo provides JavaScript APIs backed by native implementations.</p><h3>Can I Write My Own Native Code?</h3><p>Yes.</p><p>This is another outdated Expo misconception.</p><p>Modern Expo supports native customization.</p><p>Conceptually:</p><pre>Your React Native App</pre><pre>       ↓</pre><pre>Expo Modules API</pre><pre>   ↙           ↘</pre><pre>Swift         Kotlin</pre><pre>   ↓             ↓</pre><pre> iOS          Android</pre><p>So Expo does not mean:</p><blockquote><em>“Never touch native code.”</em></blockquote><p>A better mental model is:</p><blockquote><strong><em>Expo gives you structured ways to integrate and manage native code.</em></strong></blockquote><h3>What Are Config Plugins?</h3><p>Now suppose a native library requires:</p><p>Android:</p><pre>AndroidManifest.xml changes</pre><p>and iOS:</p><pre>Info.plist changes</pre><p>Traditionally, you might manually modify those files.</p><p>Expo can use <strong>Config Plugins</strong> to automate native project configuration.</p><p>Think:</p><pre>app.json<br>    ↓<br>Config Plugin<br>    ↓<br>Prebuild<br>    ↓<br>Modify Native Project</pre><p>For example:</p><pre>Need Camera Permission</pre><pre>        ↓</pre><pre>App Configuration</pre><pre>        ↓</pre><pre>Config Plugin</pre><pre>     ↙      ↘</pre><pre>Android    iOS<br>Manifest   Info.plist</pre><p>This becomes especially powerful when native projects are generated through CNG.</p><p>Instead of remembering:</p><blockquote><em>“Go edit these six native files.”</em></blockquote><p>the configuration becomes reproducible.</p><h3>Where Does EAS Fit?</h3><p>Now we need to separate another concept.</p><h3>Expo ≠ EAS</h3><p>Expo is the framework/tooling ecosystem.</p><p>EAS stands for:</p><h3>Expo Application Services</h3><p>It provides optional cloud services such as:</p><pre>EAS Build<br>EAS Update<br>EAS Submit<br>EAS Workflows</pre><p>Conceptually:</p><pre>             EXPO APP</pre><pre>       ┌────────┼────────┐<br>       ↓        ↓        ↓<br>   Develop    Build    Update<br>       ↓        ↓        ↓<br> Expo CLI    EAS Build EAS Update</pre><p>You don’t need EAS just to use React Native or Expo.</p><p>For example, development builds can be compiled locally using your native Android/iOS toolchains, or they can be built in the cloud with EAS.</p><h3>Let’s Follow One Expo App</h3><p>Suppose we build:</p><pre>function HomeScreen() {<br>  return (<br>    &lt;View&gt;<br>      &lt;Text&gt;Hello Expo&lt;/Text&gt;<br>    &lt;/View&gt;<br>  );<br>}</pre><p>During development, a simplified journey might be:</p><pre>Your Code<br>   ↓<br>Expo CLI<br>   ↓<br>Metro<br>   ↓<br>JavaScript Bundle<br>   ↓<br>Development Build<br>   ↓<br>Hermes<br>   ↓<br>React<br>   ↓<br>Fiber<br>   ↓<br>Fabric<br>   ↓<br>Native Android / iOS UI</pre><p>Notice something?</p><p>The lower half is exactly the React Native architecture we learned in Chapter 23.</p><p>Expo didn’t replace it.</p><p>Expo helped us <strong>manage everything around it</strong>.</p><h3>What If We Add a Native Library?</h3><p>Suppose:</p><pre>npx expo install some-native-library</pre><p>Now our development build may need that native code compiled into it.</p><p>Conceptually:</p><pre>Install Native Library<br>        ↓<br>Native Runtime Changed<br>        ↓<br>Generate / Configure Native Project<br>        ↓<br>Build Native App Again<br>        ↓<br>New Development Build</pre><p>But if we only change:</p><pre>&lt;Text&gt;Hello&lt;/Text&gt;</pre><p>to:</p><pre>&lt;Text&gt;Hello Chandan&lt;/Text&gt;</pre><p>we generally don’t need another native compilation.</p><p>Why?</p><p>Because the native runtime didn’t change.</p><p>Only JavaScript changed.</p><pre>JS Change<br>   ↓<br>Metro<br>   ↓<br>Fast Refresh</pre><p>This separation is fundamental to understanding Expo.</p><h3>The Two-Layer Mental Model</h3><p>Think of an Expo/React Native application as having two major pieces:</p><pre>┌─────────────────────────────┐<br>│       JavaScript Layer      │<br>│                             │<br>│ Components                  │<br>│ Business Logic              │<br>│ State                       │<br>│ Navigation Logic            │<br>└─────────────────────────────┘<br>              ↕<br>┌─────────────────────────────┐<br>│        Native Layer         │<br>│                             │<br>│ React Native                │<br>│ Expo Modules                │<br>│ Native Libraries            │<br>│ Android / iOS Config        │<br>└─────────────────────────────┘</pre><p>Changing JavaScript usually means:</p><pre>Reload JS</pre><p>Changing native capabilities means:</p><pre>Rebuild Native App</pre><p>Once this clicks, <strong>Expo Go, Development Builds, Prebuild, EAS Build and OTA updates</strong> all become much easier to understand.</p><h3>The Complete Expo Mental Model</h3><p>If you remember one diagram from this chapter, remember this:</p><pre>              YOUR APP<br>                 ↓<br>             Expo Tools<br>                 ↓<br>        ┌────────┼─────────┐<br>        ↓        ↓         ↓<br>    Expo CLI  Expo SDK   Config<br>        ↓        ↓       Plugins<br>        └────────┼─────────┘<br>                 ↓<br>           React Native<br>                 ↓<br>      Metro + Hermes + React<br>                 ↓<br>         Fiber + Fabric<br>                 ↓<br>          Android / iOS<br>                 ↓<br>           Native UI 📱</pre><p>And optionally around the development/release workflow:</p><pre>                 EAS<br>        ┌─────────┼─────────┐<br>        ↓         ↓         ↓<br>      Build     Update    Submit</pre><p>That’s Expo.</p><p>Not another React Native.</p><p>Not another renderer.</p><p>Not a replacement for native code.</p><blockquote><strong><em>A framework and ecosystem that makes React Native application development easier to manage.</em></strong></blockquote><h3>Interview Corner 🎯</h3><h3>Is Expo different from React Native?</h3><p>Expo is a framework and ecosystem built around React Native.</p><p>An Expo app is still a React Native application.</p><h3>Does Expo replace Metro?</h3><p>No.</p><p>Expo’s development tooling works with Metro.</p><h3>Does Expo replace Hermes?</h3><p>No.</p><p>The React Native application can still use Hermes as its JavaScript engine.</p><h3>Does Expo replace Fabric?</h3><p>No.</p><p>Fabric remains part of React Native’s rendering architecture.</p><h3>Can Expo applications use native code?</h3><p>Yes.</p><p>Development builds support custom native libraries and native configuration, and developers can write native modules.</p><h3>What is Expo Go?</h3><p>Expo Go is a prebuilt native application containing a fixed collection of native capabilities. It is especially useful for learning and experimentation.</p><h3>What is a Development Build?</h3><p>A development build is a project-specific native development version of your application that can contain the native libraries and configuration your app actually needs.</p><h3>Is EAS required to use Expo?</h3><p>No.</p><p>EAS provides optional services for building, updating, submitting and automating Expo/React Native applications.</p><h3>My Biggest Learning</h3><p>My old mental model was:</p><pre>React Native<br>     OR<br>    Expo</pre><p>But that’s the wrong comparison.</p><p>The better mental model is:</p><pre>React Native<br>      ↑<br>     Expo<br>      ↑<br>   Your App</pre><p>Expo sits <strong>around React Native</strong>, helping with development, configuration, native modules, builds, updates and application workflows.</p><p>And the biggest realization is:</p><blockquote><strong><em>Expo doesn’t hide React Native. It gives us a structured way to manage it.</em></strong></blockquote><h3>Key Takeaways</h3><ul><li>An Expo app is still a React Native app.</li><li>Expo does not replace Metro, Hermes, React, JSI or Fabric.</li><li>Expo provides framework conventions, libraries and tooling around React Native.</li><li>Expo SDK packages can expose real native Android/iOS functionality.</li><li>Expo Go is a prebuilt native playground with fixed native capabilities.</li><li>Development builds are project-specific and support custom native dependencies.</li><li>Expo supports custom Swift/Kotlin/native code.</li><li>Config Plugins automate native configuration.</li><li>CNG can generate android/ and ios/ from project configuration.</li><li>EAS provides optional cloud services around building, updating and releasing apps.</li><li>JavaScript changes and native-runtime changes have different development workflows.</li></ul><h3>What’s Next?</h3><p>Now we understand:</p><pre>React Native<br>      +<br>Expo Framework<br>      +<br>Development Builds<br>      +<br>Native Code</pre><p>So the obvious question becomes:</p><blockquote><strong><em>If Expo can do all of this, why would we use React Native Community CLI directly?</em></strong></blockquote><p>And more importantly:</p><h3>Which should you choose in 2026?</h3><p>Should a senior React Native developer choose Expo?</p><p>When does Community CLI still make sense?</p><p>Do we lose native control with Expo?</p><p>What happens in large enterprise applications?</p><p>And is the old advice —</p><pre>Expo = Beginner<br>CLI = Professional</pre><p>— still true?</p><p>Spoiler:</p><p><strong>No.</strong></p><p>That’s Chapter 25:</p><h3>Expo vs React Native Community CLI — Which Should You Choose in 2026?</h3><p>And we’ll compare them from an <strong>architecture perspective</strong>, not from outdated tutorials.</p><h3>💙 Quick Question for You</h3><p>Before reading this chapter, what did <strong>Expo</strong> mean in your mind?</p><p><strong>A.</strong> A replacement for React Native<br><strong>B.</strong> Just Expo Go<br><strong>C.</strong> React Native + framework/tooling<br><strong>D.</strong> “I use it, but I never thought about what’s underneath” 😄</p><p>Drop your answer in the comments 👇</p><p><strong>— </strong><a href="https://medium.com/@chandanvijayadeva.cv"><strong>@learnwithchandu</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=865df4a19040" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Does React Native Actually Run Your App?]]></title>
            <link>https://medium.com/@chandanvijayadeva.cv/how-does-react-native-actually-run-your-app-9d6d2e107423?source=rss-ada9c187dba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d6d2e107423</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Chandanvijayadeva Cv]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 11:19:39 GMT</pubDate>
            <atom:updated>2026-08-20T11:19:39.121Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*RGLawGddj3OAsJ1qqZnkKw.png" /><figcaption>How Does React Native Actually Run Your App?</figcaption></figure><h3>Inside React Native — Chapter 23</h3><h3>From JavaScript to Native Pixels 📱</h3><p>In Chapter 22, we followed React all the way down to the JavaScript runtime:</p><pre>JavaScript Runtime<br>        ↓<br>   Event Loop<br>        ↓<br>   React Scheduler<br>        ↓<br>     Fiber<br>        ↓<br>     Render<br>        ↓<br>     Commit</pre><p>But we’re building <strong>React Native</strong> applications.</p><p>So there’s still a huge question left.</p><p>When we write:</p><pre>&lt;View&gt;<br>  &lt;Text&gt;Hello React Native&lt;/Text&gt;<br>&lt;/View&gt;</pre><p>there is no HTML.</p><p>There is no:</p><pre>&lt;div&gt;<br>  &lt;p&gt;Hello React Native&lt;/p&gt;<br>&lt;/div&gt;</pre><p>Yet somehow we see a real interface on an Android phone or iPhone.</p><p>So…</p><blockquote><strong><em>How does JavaScript eventually become native UI?</em></strong></blockquote><p>Let’s follow one React Native app from our source code all the way to the pixels on the screen.</p><h3>The Big Picture First</h3><p>Before going deeper, remember this pipeline:</p><pre>Your TS / JS / JSX<br>        ↓<br>      Metro<br>        ↓<br>JavaScript / Hermes Bytecode<br>        ↓<br>      Hermes<br>        ↓<br>      React<br>        ↓<br>      Fiber<br>        ↓<br>React Native Renderer<br>        ↓<br>      Fabric<br>        ↓<br> Android / iOS<br>        ↓<br>   Native UI 📱</pre><p>There are several layers here.</p><p>And each one has a very different responsibility.</p><p>Let’s understand them one by one.</p><h3>Step 1 — We Write React Native Code</h3><p>Imagine:</p><pre>function Profile() {<br>  return (<br>    &lt;View&gt;<br>      &lt;Text&gt;Hello Chandan&lt;/Text&gt;<br>    &lt;/View&gt;<br>  );<br>}</pre><p>This is JavaScript/TypeScript + JSX.</p><p>But Android doesn’t understand:</p><pre>&lt;View&gt;</pre><p>and iOS doesn’t understand:</p><pre>&lt;Text&gt;</pre><p>The operating system understands native concepts.</p><p>So something has to prepare and execute our JavaScript first.</p><p>That’s where <strong>Metro</strong> enters.</p><h3>Step 2 — Metro Prepares the JavaScript</h3><p>You’ve probably run:</p><pre>npx react-native start</pre><p>or, in Expo:</p><pre>npx expo start</pre><p>and seen:</p><pre>Metro waiting...</pre><p>Metro is React Native’s JavaScript build tool and development server.</p><p>A simplified view:</p><pre>App.tsx<br>   +<br>components/<br>   +<br>node_modules/<br>   +<br>images/assets<br>      ↓<br>    Metro<br>      ↓<br>Prepared JavaScript</pre><p>Metro resolves modules and transforms our source so the application can execute it.</p><p>In development, Metro also plays an important role in serving code to the running app.</p><p>For production builds, the JavaScript is packaged with the application rather than depending on your laptop’s Metro server.</p><p>So:</p><blockquote><strong><em>Metro prepares the JavaScript. It doesn’t execute it.</em></strong></blockquote><p>Who executes it?</p><h3>Step 3 — Meet Hermes ⚡</h3><p>React Native needs a <strong>JavaScript engine</strong>.</p><p>Today, that engine is normally <strong>Hermes</strong>.</p><p>Think:</p><pre>JavaScript / Bytecode<br>        ↓<br>      Hermes<br>        ↓<br>JavaScript Executes</pre><p>Hermes is optimized specifically for React Native.</p><p>And in current React Native, Hermes is the default JavaScript engine.</p><p>For release builds, JavaScript can be compiled into Hermes bytecode as part of the build process.</p><p>So when your app launches, Hermes is responsible for executing things such as:</p><pre>const user = {<br>  name: &quot;Chandan&quot;<br>};<br><br>function calculateTotal() {<br>  // JavaScript<br>}</pre><p>and of course:</p><pre>function App() {<br>  const [count, setCount] = useState(0);<br><br>return ...<br>}</pre><p>Now JavaScript is running.</p><p>But Hermes still doesn’t decide what the UI should look like.</p><p>That’s React’s job.</p><h3>Step 4 — React Takes Over</h3><p>This is where everything we’ve learned in the previous 22 chapters becomes useful.</p><p>React executes our components.</p><pre>App()<br> ↓<br>Profile()<br> ↓<br>Text()</pre><p>React then works with its internal Fiber representation.</p><p>Remember:</p><pre>Component Tree<br>      ↓<br>Fiber Tree<br>      ↓<br>Reconciliation<br>      ↓<br>Determine Changes</pre><p>Suppose:</p><pre>setCount(count + 1);</pre><p>runs.</p><p>We already know the story:</p><pre>setState()<br>    ↓<br>Update<br>    ↓<br>Lane / Priority<br>    ↓<br>Scheduler<br>    ↓<br>Fiber<br>    ↓<br>Render<br>    ↓<br>Reconciliation</pre><p>React figures out:</p><blockquote><strong><em>What should the UI look like now?</em></strong></blockquote><p>But React itself still needs a platform renderer to turn that result into mobile UI.</p><p>And in modern React Native, that brings us to <strong>Fabric</strong>.</p><h3>🧠 Pause &amp; Think</h3><p>Before continuing, answer this:</p><p>When React Native executes:</p><pre>&lt;View&gt;<br>  &lt;Text&gt;Hello&lt;/Text&gt;<br>&lt;/View&gt;</pre><p>does React create something like:</p><pre>&lt;div&gt;<br>  &lt;p&gt;Hello&lt;/p&gt;<br>&lt;/div&gt;</pre><p>and somehow convert that HTML to Android/iOS?</p><h3>No.</h3><p>React Native is <strong>not React DOM inside a mobile wrapper</strong>.</p><p>There is no browser DOM sitting underneath your normal React Native View.</p><p>React uses a different renderer designed for native platforms.</p><h3>Step 5 — Fabric: React Native’s Renderer</h3><p>On the web:</p><pre>React<br>   ↓<br>React DOM<br>   ↓<br>Browser DOM</pre><p>In React Native:</p><pre>React<br>   ↓<br>React Native Renderer<br>   ↓<br>Fabric<br>   ↓<br>Native Platform UI</pre><p>Fabric is the renderer in React Native’s New Architecture.</p><p>It participates in turning React’s UI description into the native view hierarchy that Android and iOS can display.</p><p>A simplified mental model:</p><pre>React Component Tree</pre><pre>        ↓</pre><pre>   Fiber Tree</pre><pre>        ↓</pre><pre>React Native Renderer</pre><pre>        ↓</pre><pre>   Shadow Tree</pre><pre>        ↓</pre><pre>  Layout / Diff</pre><pre>        ↓</pre><pre> Mount Native Changes</pre><p>So when React determines:</p><blockquote><em>“This Text changed.”</em></blockquote><p>React Native doesn’t rebuild the entire screen.</p><p>The rendering system calculates the necessary changes and mounts the relevant updates to the native view hierarchy.</p><h3>Where Does JSI Fit?</h3><p>Now we reach another term you hear constantly in React Native interviews:</p><h3>JSI</h3><p>JSI stands for <strong>JavaScript Interface</strong>.</p><p>To understand why it matters, remember the older React Native architecture.</p><p>Very simplified:</p><pre>JavaScript<br>    ↓<br>Serialized Messages<br>    ↓<br>Bridge<br>    ↓<br>Native</pre><p>Communication frequently involved serialized data moving through the asynchronous bridge.</p><p>That architecture worked and powered huge applications.</p><p>But it introduced limitations.</p><p>Modern React Native’s New Architecture is built around <strong>JSI</strong>.</p><p>Conceptually:</p><pre>JavaScript<br>     ↕<br>    JSI<br>     ↕<br>C++ / Native Infrastructure</pre><p>JSI allows JavaScript and C++/native infrastructure to interoperate without relying on the old serialized bridge model for everything.</p><p>This enables a much tighter architecture.</p><h3>JSI Is NOT Fabric</h3><p>This distinction is important.</p><p>Sometimes developers say:</p><blockquote><em>“JSI is the new renderer.”</em></blockquote><p>No.</p><p>Think of them as different pieces.</p><h3>JSI</h3><p>Helps enable JavaScript/native interoperability.</p><h3>Fabric</h3><p>The modern React Native rendering system.</p><h3>TurboModules</h3><p>The modern native module system.</p><p>So:</p><pre>New Architecture<br>│<br>├── JSI<br>│   └── JS ↔ Native/C++ interoperability<br>│<br>├── Fabric<br>│   └── Rendering<br>│<br>├── TurboModules<br>│   └── Native APIs / modules<br>│<br>└── Codegen<br>    └── Typed generated interfaces</pre><p>They work together, but they solve different problems.</p><h3>What About Native Modules?</h3><p>Rendering isn’t everything.</p><p>Imagine your app needs:</p><pre>Camera 📷<br>GPS 📍<br>Bluetooth<br>Storage<br>Notifications 🔔<br>Biometrics</pre><p>JavaScript cannot directly access every Android/iOS API by itself.</p><p>We need native functionality.</p><p>Conceptually:</p><pre>JavaScript<br>    ↓<br>Native Module<br>    ↓<br>Android / iOS API</pre><p>In the New Architecture, <strong>TurboModules</strong> are the modern native-module system.</p><p>For example:</p><pre>React Native App<br>       ↓<br>Camera Module<br>       ↓<br>Android Camera API</pre><p>or:</p><pre>React Native App<br>       ↓<br>Biometrics Module<br>       ↓<br>iOS LocalAuthentication</pre><p>This is how React Native can expose powerful device functionality while our application logic remains largely JavaScript/TypeScript.</p><h3>And What Is Codegen?</h3><p>Suppose JavaScript expects:</p><pre>getBatteryLevel(): number</pre><p>and native code exposes something completely different.</p><p>That mismatch can create problems.</p><p>React Native’s <strong>Codegen</strong> helps generate typed interfaces and glue code based on specifications.</p><p>Conceptually:</p><pre>Typed Specification<br>       ↓<br>     Codegen<br>       ↓<br>Generated Interfaces<br>     ↙       ↘<br> JavaScript   Native</pre><p>This makes the contract between JavaScript and native code more explicit.</p><p>We’ll explore TurboModules and Codegen much deeper in a later chapter.</p><p>For now, remember where they fit.</p><h3>Let’s Follow One Button Tap 👆</h3><p>Now let’s connect everything.</p><p>Our component:</p><pre>function Counter() {<br>  const [count, setCount] = useState(0);<br><br>return (<br>    &lt;Pressable<br>      onPress={() =&gt; setCount(c =&gt; c + 1)}<br>    &gt;<br>      &lt;Text&gt;{count}&lt;/Text&gt;<br>    &lt;/Pressable&gt;<br>  );<br>}</pre><p>The user taps.</p><p>Conceptually:</p><pre>👆 USER TAP<br>      ↓<br>Native Platform Detects Interaction<br>      ↓<br>React Native Event<br>      ↓<br>JavaScript Handler Executes<br>      ↓<br>setCount()<br>      ↓<br>React Update Created<br>      ↓<br>Scheduler + Fiber<br>      ↓<br>Render / Reconciliation<br>      ↓<br>React Native Renderer<br>      ↓<br>Fabric<br>      ↓<br>Native View Updated<br>      ↓<br>📱 &quot;1&quot;</pre><p>That’s the journey.</p><p>What looked like:</p><pre>setCount(1);</pre><p>actually travelled through several layers.</p><h3>The Old Mental Model vs New Architecture</h3><p>A lot of tutorials still teach React Native like this:</p><pre>JS<br> ↓<br>Bridge<br> ↓<br>Native</pre><p>That is useful historically, but it is no longer enough for understanding modern React Native.</p><p>A better high-level mental model is:</p><pre>MODERN REACT NATIVE</pre><pre>               React<br>                 ↓<br>               Fiber<br>                 ↓<br>        React Native Renderer<br>                 ↓<br>              Fabric<br>                 ↓<br>            Native UI<br></pre><pre>JavaScript ←→ JSI ←→ Native/C++<br></pre><pre>Native APIs<br>     ↑<br>TurboModules</pre><p>And Hermes executes the JavaScript powering the application.</p><h3>Why Should an App Developer Care?</h3><p>You might think:</p><blockquote><em>“This is framework internals. Why do I need it?”</em></blockquote><p>Because suddenly many debugging questions become easier.</p><p>If the JavaScript thread is blocked:</p><pre>Look at JS work</pre><p>If bundling fails:</p><pre>Look at Metro / build configuration</pre><p>If React is rendering excessively:</p><pre>Look at state / Fiber / component architecture</pre><p>If a native API fails:</p><pre>Look at native module integration</pre><p>If the UI mounting/rendering behaves unexpectedly:</p><pre>Understand the renderer / native layer</pre><p>Instead of saying:</p><blockquote><em>“React Native is slow.”</em></blockquote><p>you can ask:</p><blockquote><strong><em>Which layer is actually slow?</em></strong></blockquote><p>That’s a much stronger engineering question.</p><h3>React Native in One Diagram</h3><p>If you remember only one diagram from this chapter, remember this:</p><pre>YOUR CODE<br>      TS / JS / JSX<br>           ↓<br>         METRO<br>           ↓<br>         HERMES<br>           ↓<br>         REACT<br>           ↓<br>         FIBER<br>           ↓<br> REACT NATIVE RENDERER<br>           ↓<br>         FABRIC<br>           ↓<br>     ANDROID / iOS<br>           ↓<br>      NATIVE UI 📱</pre><p>And beside that pipeline:</p><pre>JSI<br>↓<br>JS ↔ Native/C++</pre><pre>TurboModules<br>↓<br>Native APIs</pre><pre>Codegen<br>↓<br>Typed Interfaces</pre><p>Now React Native stops looking like magic.</p><p>It becomes a collection of cooperating layers.</p><h3>Interview Corner 🎯</h3><h3>What is Metro?</h3><p>Metro is React Native’s JavaScript build tool. It resolves modules, transforms source code and supports bundling/development serving.</p><h3>What is Hermes?</h3><p>Hermes is a JavaScript engine optimized for React Native and is the default engine in modern React Native.</p><h3>What is JSI?</h3><p>JSI is an interface that enables JavaScript to interoperate with C++/native infrastructure without relying on the old serialized asynchronous bridge model for everything.</p><h3>What is Fabric?</h3><p>Fabric is React Native’s modern rendering system used by the New Architecture.</p><h3>What are TurboModules?</h3><p>TurboModules are the New Architecture’s native-module system for exposing platform capabilities to JavaScript.</p><h3>Is JSI the replacement for Fabric?</h3><p>No.</p><p>They solve different problems.</p><pre>JSI → interoperability</pre><pre>Fabric → rendering</pre><pre>TurboModules → native modules</pre><pre>Codegen → typed generated interfaces</pre><h3>My Biggest Learning</h3><p>Earlier, I imagined React Native like this:</p><pre>JavaScript<br>    ↓<br>Magic<br>    ↓<br>Native App 😄</pre><p>Then I learned about the Bridge and thought:</p><pre>JavaScript<br>    ↓<br>Bridge<br>    ↓<br>Native</pre><p>But modern React Native deserves a better mental model:</p><pre>Metro<br>  ↓<br>Hermes<br>  ↓<br>React<br>  ↓<br>Fiber<br>  ↓<br>Fabric<br>  ↓<br>Native UI</pre><p>with:</p><pre>JSI + TurboModules + Codegen</pre><p>supporting the broader JavaScript/native architecture.</p><p>Once you understand these layers, React Native becomes much easier to reason about.</p><h3>Key Takeaways</h3><ul><li>React Native does not render HTML or use the browser DOM for normal native components.</li><li>Metro prepares the JavaScript application.</li><li>Hermes executes JavaScript and is the default engine in modern React Native.</li><li>React and Fiber determine what the UI should become.</li><li>Fabric is React Native’s modern renderer.</li><li>JSI enables modern JavaScript/native interoperability.</li><li>TurboModules expose native capabilities.</li><li>Codegen helps generate typed interfaces between JavaScript and native.</li><li>The New Architecture moves beyond the old serialized Bridge-centric model.</li><li>Understanding the layers helps identify <strong>where</strong> a performance or integration problem actually exists.</li></ul><h3>What’s Next?</h3><p>Now we know how React Native gets from:</p><pre>JavaScript<br>      ↓<br>Native UI 📱</pre><p>But there’s something interesting.</p><p>When starting a React Native application today, you’ll constantly hear:</p><blockquote><strong><em>“Use Expo.”</em></strong></blockquote><p>So what exactly is Expo?</p><p>Is Expo another runtime?</p><p>Does it replace React Native?</p><p>Does Expo Go run our app differently?</p><p>Can Expo apps contain native code?</p><p>And if Expo is still React Native…</p><blockquote><strong><em>What is Expo actually doing for us?</em></strong></blockquote><p>That’s where we’re going next.</p><h3>Inside React Native — Chapter 24</h3><h3>How Does Expo Actually Work Internally?</h3><h3>Expo CLI → Metro → Development Build → Expo Modules → React Native → Native App</h3><p>And this one will clear up one of the biggest misconceptions in the React Native ecosystem.</p><h3>💙 Quick Question for You</h3><p>Before reading this chapter, how did you imagine React Native worked internally?</p><p><strong>JavaScript → Bridge → Native?</strong></p><p>Or were <strong>Hermes, JSI, Fabric and TurboModules</strong> already part of your mental model? 🤔</p><p>Drop your answer in the comments 👇</p><p><strong>— </strong><a href="https://medium.com/@chandanvijayadeva.cv"><strong>@learnwithchandu</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d6d2e107423" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>