<?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 Nilesh Ganpat Chavan on Medium]]></title>
        <description><![CDATA[Stories by Nilesh Ganpat Chavan on Medium]]></description>
        <link>https://medium.com/@chavangnilesh?source=rss-7d51cb0cc820------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SWvOyFxZarCJUf-i-pLWFw.jpeg</url>
            <title>Stories by Nilesh Ganpat Chavan on Medium</title>
            <link>https://medium.com/@chavangnilesh?source=rss-7d51cb0cc820------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:54:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chavangnilesh/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[From Confusion to Clarity: A Simple Guide to Expo Config Keys]]></title>
            <link>https://medium.com/simform-engineering/from-confusion-to-clarity-a-simple-guide-to-expo-config-keys-4f3d6ed50201?source=rss-7d51cb0cc820------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f3d6ed50201</guid>
            <category><![CDATA[config-keys]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[keys]]></category>
            <category><![CDATA[expo-config]]></category>
            <category><![CDATA[expo]]></category>
            <dc:creator><![CDATA[Nilesh Ganpat Chavan]]></dc:creator>
            <pubDate>Tue, 04 Nov 2025 05:17:12 GMT</pubDate>
            <atom:updated>2025-11-04T05:17:12.361Z</atom:updated>
            <content:encoded><![CDATA[<h4>Understanding how Expo config keys work and how to use them effectively in your React Native projects.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tfvQD4lpwiOtgz-NFxK7PQ.png" /></figure><p><strong>Expo</strong> is a framework that helps you build React Native apps for Android, iOS, and the web. This guide explains the purpose and use cases of key Expo configuration fields, such as runtimeVersion, githubUrl, developmentClient, scheme, extra, updates, locales, plugins, platform-specific keys, experiments, and _internal.</p><p>Now, let’s go through these keys one by one:</p><h3><strong>1.</strong> runtimeVersion</h3><p><strong>OTA Updates with EAS</strong>: When using EAS (Expo Application Services), you can push OTA (Over-the-Air) updates that modify only the JavaScript code of your app, not the native code.</p><p><strong>Native Code Limitation</strong>: Since native code is bundled at build time, it cannot be changed through OTA updates. That’s why version compatibility between JS and native code is crucial.</p><p><strong>Purpose of runtimeVersion</strong>: The runtimeVersion key defines a version identifier for the runtime environment your app requires. It ensures that the JavaScript code pushed through an OTA update is compatible with the native code already installed on users’ devices.</p><p><strong>How runtimeVersion affects OTA updates</strong>:</p><blockquote><strong><em>Scenario 1: Matching Runtime Versions<br></em></strong><em>Installed App: runtimeVersion: “1.0.0”<br>OTA Update: runtimeVersion: “1.0.0”<br>✅ Update is applied</em></blockquote><blockquote><strong><em>Scenario 2: Non-Matching Runtime Versions<br></em></strong><em>Installed App: runtimeVersion: “1.0.0”<br>OTA Update: runtimeVersion: “2.0.0”<br>❌ Update is rejected</em></blockquote><p><strong>How to define the runtimeVersion</strong>:</p><ul><li>Manually specify a version string (e.g., “1.0.0”).</li><li>Or use a policy that automatically sets the runtime version based on certain criteria.</li></ul><p><strong>nativeVersion</strong><br>Automatically generates a version hash based on all native dependencies (e.g., expo, react-native, etc.). Best for projects with frequent native dependency updates.</p><pre>&quot;runtimeVersion&quot;: { &quot;policy&quot;: &quot;nativeVersion&quot; }</pre><p><strong>sdkVersion<br></strong>Link the runtime version to the SDK version used in your project. Ideal for simple managed workflows without custom native code.</p><pre>&quot;runtimeVersion&quot;: { &quot;policy&quot;: &quot;sdkVersion&quot; }</pre><p><strong>appVersion</strong><br>Use the version field from app.json (or app.config.js). Helpful when your app versioning aligns with the release.</p><pre>&quot;runtimeVersion&quot;: { &quot;policy&quot;: &quot;appVersion&quot; }</pre><p><strong>fingerprint</strong><br>Generates a version hash based on your app’s entire configuration and native dependencies. It ensures a new runtime version is created for any configuration change.</p><pre>&quot;runtimeVersion&quot;: { &quot;policy&quot;: &quot;fingerprint&quot; }</pre><h3>2. githubUrl</h3><p>The githubUrl key serves as a metadata field within project configurations. Its primary purpose is to provide a link to your project code repository, which internal tools or services can utilize. This key helps collaborators or reviewers easily access your GitHub repository for the project.</p><pre> &quot;githubUrl&quot;: &quot;https://github.com/&lt;your-github-username&gt;/&lt;your-project-name&gt;&quot;</pre><h3>3. developmentClient</h3><p>The developmentClient key is used to customize settings, specifically when the app is running with the development client using EAS.</p><pre>  &quot;developmentClient&quot;: {<br>      &quot;silentLaunch&quot;: true<br>   }</pre><p>When silentLaunch is set to true, the app will launch in a development client with no additional dialogs or progress indicators, just like in a standalone app. The app will bypass the QR code screen and attempt to connect to the dev server automatically, as long as it detects the correct Metro instance on the same network.</p><h4>Steps to validate:</h4><ul><li><strong>Step 1</strong>: Set silentLaunch to true in developmentClient in the app.json (or app.config.js) file.</li><li><strong>Step 2</strong>: Build a development client app using<br>eas build —platform android —profile development</li><li><strong>Step 3</strong>: Run the yarn start command; it will start the server.</li><li><strong>Step 4</strong>: Install the generated .apk or .ipa on your device.</li><li><strong>Step 5</strong>: Open the app on your device. It will silently get connected with the metro server without showing any dialogs or progress indicators.</li></ul><h3>4. scheme</h3><p>The <strong>scheme</strong> key is used to define a custom URI scheme for your app. It enables deep linking, allowing specific URLs to open your app and navigate to a particular screen.</p><pre> &quot;scheme&quot;: &quot;expoapp&quot;</pre><p>With this configuration, any URL starting with expoapp://, like expoapp://home, will launch your app when tapped, if the app is installed on the device.</p><h3>5. extra</h3><p>Sometimes you might want to pass some custom values to your Expo app, values like the environment flag. That’s where the extra key in app.json (or app.config.js) comes into use. An extra field lets you pass a custom key-value pair into your app, which you can then access using expo-constants .</p><p>Add an extra key to your app.json (or app.config.js):</p><pre>&quot;extra&quot;: {<br>  &quot;testKey&quot;: &quot;testValue&quot;,<br>  &quot;testKey2&quot;: &quot;testValue2&quot;<br>}</pre><p>Access these values inside your app code:</p><pre>import Constants from &#39;expo-constants&#39;;<br><br>const myValue = Constants.expoConfig.extra.testKey;</pre><blockquote><strong><em>Note</em></strong><em>: These values are bundled at build time. So if you’re changing extra in the app.json (or app.config.js)</em> <em>file, you need to rebuild the app.</em></blockquote><h3>6. updates</h3><p>The <strong>updates</strong> key is used to handle how Expo handles over-the-air (OTA) updates in the app. These updates allow you to push JavaScript and asset changes to the user without requiring new store submissions. There are some key configurations we can add to this key.</p><h4>I. enabled</h4><p>It decides whether to run the update system or not. <strong>If false</strong>, the app will only use the code and assets bundled at build time. <strong>If true</strong>, then it allows over-the-air updates to change the JavaScript and asset changes to the current app without updating manually. The default value is <strong>true</strong>.</p><h4>II. checkAutomatically</h4><p>It determines when the app should check for updates. By default, expo-updates will check for updates every time the app is loaded. We have 4 options to use.</p><p><strong>ON_LOAD</strong>: expo-updates will check updates every time the app is loaded from a kill state. This is the default value.<br><strong>ON_ERROR_RECOVERY: </strong>expo-updates will check for updates only when the app is recovering from an error.<br><strong>WIFI_ONLY: </strong>expo-updates will check for updates only when the device is connected to a Wi-Fi connection.<br><strong>NEVER: </strong>expo-updates will never check for updates.</p><h4>III. useEmbeddedUpdate</h4><p>The useEmbeddedUpdate flag in Expo determines whether your app should load the embedded update (the code bundled during the build) or wait for an Over-The-Air (OTA) update.</p><p><strong>If useEmbeddedUpdate is set to true (default)<br></strong>The app will use the embedded updates (the one bundled at build time) if no newer update is available.</p><blockquote><em>The app starts → the app runs the code that was bundled during the build → in the background, it checks for a new OTA update → if a new update is available, it is downloaded silently → the next time the app restarts, the update will be applied.</em></blockquote><p><strong>If useEmbeddedUpdate is set to false<br></strong>The app will fetch a new update at launch. When useEmbeddedUpdate is set to false, ensure that <strong>checkAutomatically</strong> is set to <strong>ON_LOAD</strong> and that <strong>fallbackToCacheTimeout</strong> is large enough to allow the initial remote update to download. This setting should not be used in production.</p><blockquote><em>The app starts → the app waits to check for an update from the internet → if an update is available and downloaded, it runs it → if the update fails or is not available, it falls back to the embedded version.</em></blockquote><p><strong>When to use it?</strong><br>Only useful in case you don’t want to use the bundled code at all and expect to always have OTA updates available.</p><h4>IV. fallbackToCacheTimeout</h4><p>The fallbackToCacheTimeout controls how long the app should wait for a remote update to download before falling back to the embedded version. The timeout is only relevant when <strong>checkAutomatically</strong> is <strong>ON_LOAD.</strong><br>Default is <strong>0</strong><br>Range is <strong>0</strong> to <strong>300000</strong> (5 minutes)</p><blockquote><em>The app launches → it checks the Expo update server for a newer update → if a new update is available, it starts downloading it. While downloading, the app waits for a short time (fallbackToCacheTimeout). If the download finishes within the timeout, the new update is used. If not, the app falls back to the cached version.</em></blockquote><p><strong>Use Cases and suggested values for fallbackToCacheTimeout:</strong></p><ul><li>If fast app launch is critical, the suggested timeout is <strong>0</strong>. In this case, the user prioritizes speed, and the update can be applied the next time the app restarts.</li><li>If content changes frequently (e.g., a news app), then the suggested value is between <strong>3000</strong> and <strong>5000</strong> milliseconds. It’s better to wait a little to display the latest changes.</li><li>If the update must be applied immediately (e.g., for security patches), set the timeout to <strong>300000</strong> or use useEmbeddedUpdate to false to ensure the new code is used right away.</li></ul><h4>V. url</h4><p>The url field tells your app from where to fetch <strong>Over-The-Air</strong> (OTA) updates. It is especially useful when using a custom update server. This field is necessary if you are hosting your own update server. If you’re using EAS (Expo Application Services), this URL is set automatically when you run the command below.</p><pre>eas update:configure</pre><p>Using EAS Update Server:</p><pre>&quot;updates&quot;: {<br>   &quot;url&quot;: &quot;https://u.expo.dev/&lt;yourprojectid&gt;&quot;<br>}</pre><p>Using a Custom Update Server:</p><pre>&quot;updates&quot;: {<br>  &quot;url&quot;: &quot;https://customdomain.com&quot;<br>} </pre><p>📘 <strong>Additional Reference</strong><br>You can find the official guide for setting up a custom <a href="https://github.com/expo/custom-expo-updates-server">Expo update server on GitHub</a>.</p><h4><strong>VI. requestHeaders</strong></h4><p>The requestHeaders field allows you to add custom HTTP headers to the requests made by expo-updates when fetching update manifests or assets. Essential when using a custom update URL that requires authentication (e.g., JWT tokens, API keys) to secure your update endpoint.</p><pre>&quot;updates&quot;: {<br>  &quot;requestHeaders&quot;: {<br>    &quot;Authorization&quot;: &quot;Bearer YOUR_ACCESS_TOKEN&quot;,<br>    &quot;CustomLabel&quot;: &quot;CustomValue&quot;<br>  }<br>}</pre><h4>VII. disableAntiBrickingMeasures</h4><p>The disabledAntiBrickingMeasure in Expo determines whether to disable the built-in Expo updates anti-bricking measures. The default value is <strong>false</strong>.</p><p><strong>What are “Anti-Bricking Measures”?<br></strong>Expo has built-in protection to prevent your app from getting stuck in a broken or unusable state (bricked state). These include</p><ul><li><strong>Rolling back automatically</strong> if a new update fails to load or the app crashes right after an update.</li><li><strong>Only replace older updates</strong> if the new update is stable.</li><li>It ensures your app doesn’t get stuck in a non-recoverable state.</li></ul><p><strong>If disableAntiBrickingMeasures is set to true:</strong></p><ul><li>If the update is broken, your app may crash; there is no way for Expo to roll back. Users have to uninstall and reinstall the app manually to fix it.</li><li>This setting is dangerous for production apps and can only be used in development builds if needed.</li></ul><h3>7. locales</h3><p>If you’re planning to launch your app in different countries or regions, you will likely want to support multiple languages. This is where locales come in. The locales key allows you to customize text like your app’s name or system dialogs in different languages.</p><p><strong>Step 1</strong>: Enable Mixed Localizations in app.json (or app.config.js).</p><pre>&quot;ios&quot;: {<br>   &quot;infoPlist&quot;: {<br>      &quot;CFBundleAllowMixedLocalizations&quot;: true<br>    }<br> }</pre><p><strong>Step 2</strong>: Add a localized file path in app.json (or app.config.js).</p><p>Then, list the paths to your localized string files using the locales field. The keys provided to locales should be the <a href="https://developer.apple.com/documentation/xcode/choosing-localization-regions-and-scripts">language identifier</a>, made up of a <a href="https://www.loc.gov/standards/iso639-2/php/code_list.php">2-letter language code</a> of your desired language, with an optional region code (e.g., en-US or en-GB).</p><pre>&quot;locales&quot;: {<br>      &quot;ja&quot;: &quot;./languages/japanese.json&quot;<br> }</pre><p><strong>Step 3</strong>: Define keys in the language json file (japanese.json).</p><pre>{<br>  &quot;CFBundleDisplayName&quot;: &quot;エクスポアプリ&quot;,<br>  &quot;NSCameraUsageDescription&quot;: &quot;このアプリは正常に動作するためにカメラへのアクセスが必要です。&quot;,<br>  &quot;app_name&quot;: &quot;エクスポアプリ&quot;<br>}</pre><blockquote><strong><em>Note:</em></strong><em> If you want your app’s static content to be localized, you must use the </em><em>expo-localization and </em><em>i18n-js modules to configure language support for your app.</em></blockquote><h3>8. <strong>plugins</strong></h3><p>The plugins key allows you to configure third-party libraries, modify native dependencies, and add custom features to your app without ejecting it from the managed workflow. Please check the example below for reference.</p><pre>{<br>  &quot;plugins&quot;: [<br>    [<br>      &quot;react-native-vision-camera&quot;,<br>      {<br>        &quot;cameraPermissionText&quot;: &quot;$(PRODUCT_NAME) needs access to your Camera.&quot;,        <br>        &quot;enableMicrophonePermission&quot;: true,<br>        &quot;microphonePermissionText&quot;: &quot;$(PRODUCT_NAME) needs access to your Microphone.&quot;<br>      }<br>    ],<br>    [<br>      &quot;./my-custom-plugin&quot;,<br>      {<br>        &quot;ios&quot;: {<br>          &quot;permission&quot;: {<br>            &quot;NSCameraUsageDescription&quot;: &quot;We need camera access to take pictures.&quot;<br>          }<br>        },<br>        &quot;android&quot;: {<br>          &quot;appsBundleIds&quot;: [&quot;com.example.expoapp&quot;]<br>        }<br>      }<br>    ]<br>  ]<br>}</pre><p>Once you’ve added the plugin configuration to your app.json (or app.config.js) file, run the <strong>expo prebuild</strong> command. This command ensures that all plugin-specific changes (such as updating Info.plist for iOS and AndroidManifest.xml for Android) are automatically applied to your project.</p><h3><strong>9. Platform Specific Keys (android, ios and web)</strong></h3><p>“These keys define platform-specific configurations, like setting bundle identifier for iOS, package name for Android, Firebase configuration for web and mobile (Android &amp; iOS). These settings ensure your app behaves correctly on each platform and can access necessary platform-specific features.</p><pre>&quot;ios&quot;: {<br>   &quot;bundleIdentifier&quot;: &quot;com.example.expoapp&quot;,<br>   &quot;googleServicesFile&quot;: &quot;./ios/GoogleService-Info.plist&quot;<br>},<br>&quot;android&quot;: {<br>   &quot;package&quot;: &quot;com.example.expoapp&quot;,<br>   &quot;googleServicesFile&quot;: &quot;./android/app/google-services.json&quot;<br>},<br>&quot;web&quot;: {<br>    &quot;config&quot;: {<br>        &quot;firebase&quot;: {<br>          &quot;apiKey&quot;: &quot;API_KEY&quot;,<br>          &quot;authDomain&quot;: &quot;project_id.firebaseapp.com&quot;,<br>          &quot;projectId&quot;: &quot;project_id&quot;,<br>          &quot;storageBucket&quot;: &quot;project_id.appspot.com&quot;,<br>          &quot;messagingSenderId&quot;: &quot;MESSAGING_SENDER_ID&quot;,<br>          &quot;appId&quot;: &quot;APP_ID&quot;<br>        }<br>    }<br>}</pre><h3><strong>10. experiments</strong></h3><p>The experiments key allows you to enable experimental features that are not fully stable or supported. It’s for developers who want to use and test the new capabilities. There are some key configurations we can add to this key.</p><h4><strong>I. baseUrl</strong></h4><p>The baseUrl key is used to specify the base path for your web app when it’s hosted in a subdirectory on a web server. This is helpful when you’re not deploying your app to the root of a domain but to a specific subpath.</p><p>For example, deploying your app at <a href="https://yourdomain.com/your-app/">https://yourdomain.com/your-app/</a> instead of the root domain at <a href="https://yourdomain.com/,">https://yourdomain.com/,</a> requires the baseUrl to ensure everything works as expected under that subdirectory.</p><pre>&quot;experiments&quot;: {<br>   &quot;baseUrl&quot;: &quot;/your-app&quot;<br>}</pre><h4>II. tsconfigPaths</h4><p>The tsconfigPaths key in Expo simplifies managing module imports by allowing you to use path aliases defined in <strong>tsconfig.json</strong>. This is useful for cleaning up complex import paths.</p><p>In tsconfig.json:</p><pre>&quot;compilerOptions&quot;: {<br>    &quot;strict&quot;: true,<br>    &quot;paths&quot;: {<br>      &quot;@/*&quot;: [<br>        &quot;./*&quot;<br>      ]<br>    }<br>  }</pre><p>In app.json (or app.config.js):</p><pre>&quot;experiments&quot;: {<br>  &quot;tsconfigPaths&quot;: true<br>}</pre><p>In Screen File:</p><pre>import { ThemedText } from &#39;@/components/ThemedText&#39;;<br><br>// instead of<br><br>import { ThemedText } from &#39;../../components/ThemedText&#39;;</pre><h4>III. typedRoutes</h4><p>The typedRoutes key enables type-safe routing when using the Expo Router. It generates TypeScript types for your app’s navigation routes based on the folder structure in the app directory.</p><p>app<br> —index.tsx<br> —settings.tsx</p><p>When typedRoutes is set to <strong>true.</strong></p><pre>&lt;Link href=&quot;/settings&quot;&gt;Go to About&lt;/Link&gt; // Type is checked at compile time</pre><h4>IV. reactServerComponentRoutes</h4><p>The reactServerComponentRoutes key enables React Server Components by default in Expo Router. It tells Expo to treat all routes in your app as server component routes, meaning they can be rendered using React Server Components (RSC). You can return JSX from server components and use React Suspense to suspend the rendering of server-rendered UI.</p><pre>&quot;experiments&quot;: {<br>  &quot;reactServerComponentRoutes&quot;: true<br>}</pre><h4>V. reactServerFunctions</h4><p>This key enables React Server Functions support in Expo CLI and Expo Router.</p><p><strong>Purpose of reactServerFunctions:</strong></p><ul><li>This key allows us to fetch data securely on the server.</li><li>Render JSX on the server and return it.</li><li>Keep the sensitive code out of the client.</li></ul><pre>&quot;experiments&quot;: {<br>   &quot;reactServerFunctions&quot;: true<br>}</pre><p>Example of how to define the server function:</p><pre>&#39;use server&#39;;<br>export default async function myServerFunction() {<br>  const data = await fetchSomething();<br>  return &lt;Text&gt;{data.name}&lt;/Text&gt;;<br>}</pre><p>This can be used in client components via React.Suspense:</p><pre>&lt;React.Suspense fallback={&lt;Loading /&gt;}&gt;{myServerFunction()}&lt;/React.Suspense&gt; </pre><h3>11. _internal</h3><p>The _internal key is used internally by Expo CLI during development. It’s not intended for production use. It helps developers test the behavior of Expo or custom plugins. The _internal section is managed by Expo CLI and shouldn’t be modified, as changing this could lead to unexpected behavior.</p><p><strong>pluginHistory</strong> is the object where the key is the plugin name and the value is an object that contains the name and version of that plugin.</p><pre>EXPO_DEBUG=1 npx expo config --type prebuild</pre><p>This command helps you determine which plugins are running, the order in which the plugins are executed, any warnings or errors that occur during execution, and how a custom plugin behaves.</p><p><strong>Output of this command:</strong></p><pre>{<br>   ...<br>   _internal: {<br>      ...<br>      pluginHistory: {<br>        &#39;expo-splash-screen&#39;: {<br>          name: &#39;expo-splash-screen&#39;,<br>          version: &#39;0.30.9&#39;<br>        },<br>        &#39;expo-camera&#39;: {<br>          name: &#39;expo-camera&#39;,<br>          version: &#39;16.1.6&#39;<br>        },<br>       ...<br>      },<br>   }<br>}</pre><h3>Additional Resources and References</h3><ul><li><a href="https://docs.expo.dev/versions/latest/config/app/">https://docs.expo.dev/versions/latest/config/app/</a></li></ul><blockquote><strong><em>For more updates on the latest tools and technologies, follow the </em></strong><a href="https://medium.com/simform-engineering"><strong><em>Simform Engineering</em></strong></a><strong><em> blog.</em></strong></blockquote><blockquote><strong><em>Follow Us:</em> </strong><a href="https://twitter.com/simform"><strong><em>X</em></strong></a><strong><em> | </em></strong><a href="https://www.linkedin.com/company/simform/"><strong><em>LinkedIn</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f3d6ed50201" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simform-engineering/from-confusion-to-clarity-a-simple-guide-to-expo-config-keys-4f3d6ed50201">From Confusion to Clarity: A Simple Guide to Expo Config Keys</a> was originally published in <a href="https://medium.com/simform-engineering">Simform Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>