<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Asad khan</title>
    <description>The latest articles on Forem by Asad khan (@asad8746).</description>
    <link>https://forem.com/asad8746</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1233465%2Ff59390dc-d2bf-4ace-a1e5-832fb2bb8f24.jpeg</url>
      <title>Forem: Asad khan</title>
      <link>https://forem.com/asad8746</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/asad8746"/>
    <language>en</language>
    <item>
      <title>A New Tool In Town to Upgrade React Native Apps Called Flame AI</title>
      <dc:creator>Asad khan</dc:creator>
      <pubDate>Thu, 14 Dec 2023 18:46:23 +0000</pubDate>
      <link>https://forem.com/asad8746/a-new-tool-in-town-to-upgrade-react-native-apps-called-flame-ai-18e</link>
      <guid>https://forem.com/asad8746/a-new-tool-in-town-to-upgrade-react-native-apps-called-flame-ai-18e</guid>
      <description>&lt;p&gt;As React Native developers, staying up-to-date with the latest version of React Native is crucial for accessing new features, improvements, and ensuring the security of your mobile applications. However, the process of upgrading can often be challenging and time-consuming. In response Infinite Red Team &lt;strong&gt;(renowned for Ignite React Native boilerplate)&lt;/strong&gt; came up with Flame AI which is a new Cli tool to upgrade your react native apps.&lt;br&gt;
This &lt;strong&gt;CLI Tool&lt;/strong&gt; uses the power of the GPT-4 language model, to streamline the React Native upgrade process.`&lt;code&gt;&lt;br&gt;
NOTE:- To Run Flame, Chat GPT-4 Token key and Node V18+ will be required.&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Challenge:
&lt;/h2&gt;

&lt;p&gt;Upgrading React Native versions traditionally involves navigating through breaking changes, updating dependencies, and resolving compatibility issues. Recognizing these challenges, the Infinite Red team created a solution that not only simplifies the upgrade process but also leverages the capabilities of AI for a more advance approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Flame AI Works
&lt;/h2&gt;

&lt;p&gt;Flame AI still utilizes &lt;a href="https://react-native-community.github.io/upgrade-helper/"&gt;React Native Upgrade Helper&lt;/a&gt;  which extracts the required changes from react-native-upgrade-helper and passes them to ChatGPT-4. Afterward, ChatGPT-4 understands Git diffs, enabling the AI to identify where to add or remove code. Let's get Started&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx flame --help&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;will list command and options that are available:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;--from=[auto|]:&lt;/strong&gt; The version to upgrade from. Defaults to the version specified in package.json.&lt;br&gt;
&lt;strong&gt;--to=[auto|]:&lt;/strong&gt; The version to upgrade to. Defaults to the latest version of React Native on NPM.&lt;br&gt;
  &lt;strong&gt;--interactive&lt;/strong&gt; Run in interactive mode.&lt;br&gt;
  &lt;strong&gt;--list&lt;/strong&gt; List the files that will be upgraded.&lt;br&gt;
  &lt;strong&gt;--only&lt;/strong&gt; Only upgrade files that match this string.&lt;/p&gt;

&lt;p&gt;In order to upgrade our React Native app, we can run the above command in the root of your React Native app, which will upgrade our app in one go. However, the recommended way is to use interactive mode, which will ask: &lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx flame upgrade react-native&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx flame upgrade react-native --interactive --from=0.72.2 --to=auto --list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you want to learn more about Flame Ai, Links are given below&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=8r0qirR3wWY"&gt;Great Talk by Jamon Holmgren&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/infinitered/flame"&gt;Github Repo Link&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>reactnative</category>
      <category>javascript</category>
      <category>mobile</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
