<?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 Arun kumar V on Medium]]></title>
        <description><![CDATA[Stories by Arun kumar V on Medium]]></description>
        <link>https://medium.com/@arunkumarvallal?source=rss-9ef51a3e8163------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G5qbQqjQY62Wxi9hinbioQ.jpeg</url>
            <title>Stories by Arun kumar V on Medium</title>
            <link>https://medium.com/@arunkumarvallal?source=rss-9ef51a3e8163------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 23:26:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arunkumarvallal/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 Quickly Set Up the File System MCP Server in VSCode(npx)]]></title>
            <link>https://arunkumarvallal.medium.com/how-to-quickly-set-up-the-file-system-mcp-server-in-vscode-npx-d0a158071732?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0a158071732</guid>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Tue, 29 Apr 2025 11:27:56 GMT</pubDate>
            <atom:updated>2025-04-29T11:27:56.500Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bAjlPETQblPaz58smjq23w.jpeg" /></figure><p>This setup gives your AI smart access to your <strong>project folder</strong>, so it can read, write, and help with real files, write files, just like a coding partner.</p><p><strong>Example</strong><br>You’re working on a big project. Your AI assistant says:</p><blockquote><em>“You should create a new file, move old code to archive, and add a route.”</em></blockquote><p>Usually, you do that manually: click, type, move, repeat.</p><p>But with MCP?</p><p>You say the instruction — and it <strong>happens.</strong><br>Files are created, folders moved, and routes updated.<br>Just like a virtual teammate.</p><h3>Prerequisites</h3><ul><li>Make sure you have <strong>Node.js</strong> (v18 or higher)</li><li>Latest <strong>VSCode</strong> installed (March 2025 version: <strong>1.99.3</strong> or newer)</li></ul><h3>Step-by-Step Setup (Using npx)</h3><h4>Step 1: Add .vscode/mcp.json File</h4><p>Inside your project, make this file: .vscode/mcp.json</p><pre>{<br>  &quot;servers&quot;: {<br>    &quot;filesystem&quot;: {<br>      &quot;type&quot;: &quot;stdio&quot;,<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [<br>        &quot;-y&quot;,<br>        &quot;@modelcontextprotocol/server-filesystem&quot;,<br>        &quot;path to the Folder&quot; // Replace the line with your project path <br>      ]<br>    }<br>  }<br>}</pre><p>This tells VSCode:<br> ▶ use npx to run the File System server<br> ▶ Allow it only inside this folder (safe!)</p><p>You don’t need to install anything globally.<br> This works per project.</p><h4>Step 2: Enable Agent Mode</h4><p>Inside your Copilot chat, choose the <strong>Agent</strong> mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nz5HTWOaL5ntubTVV2pw2g.png" /></figure><h4>Step 3: Start the MCP Server</h4><p>Click on the <strong>Restart</strong> button with a blue background.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GXgy2bqZ2po3EGhnrabqOw.png" /></figure><p>Vola!</p><h4>AI in VSCode can:</h4><ul><li>Read your project files</li><li>Edit your code</li><li>Search across folders</li><li>Understand your project better</li></ul><p>Ask things like:</p><blockquote><em>“Find all TODO comments in my files”<br> “Replace ‘api_url’ with ‘BASE_URL’ in all files”<br> “Add a section in README.md”</em></blockquote><p>It will do it!</p><p><strong>References:</strong></p><p><a href="https://code.visualstudio.com/docs/copilot/chat/mcp-servers">https://code.visualstudio.com/docs/copilot/chat/mcp-servers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0a158071732" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Model Context Protocol (MCP)]]></title>
            <link>https://arunkumarvallal.medium.com/model-context-protocol-mcp-aab3c9c6269c?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/aab3c9c6269c</guid>
            <category><![CDATA[mcp-protocol]]></category>
            <category><![CDATA[mcp-client]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mcps]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Tue, 29 Apr 2025 06:42:50 GMT</pubDate>
            <atom:updated>2025-04-29T11:42:38.600Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you are moving to a new house.<br>Instead of packing every item yourself, you just tell a moving team:</p><blockquote><strong>Pack my kitchen things in one box, label it, and place it in the truck</strong></blockquote><p>And without lifting a finger, it’s <strong>done</strong>.</p><ul><li>No packing</li><li>No carrying</li><li>No thinking about where to put what</li></ul><p><strong>You just say it once, and it happens.</strong></p><p>Now think about working on your project.<br>You have to:</p><ul><li>Create a new feature folder inside src/features</li><li>Add files like NewFeature.jsx, NewFeature.module.css</li><li>Update the routes.js file to include your new page</li><li>Maybe move some old files into an archive/ folder</li><li>Fix some imports manually</li><li>Run a few commands to build or test</li></ul><p>And you do all this by <strong>clicking</strong>, <strong>typing</strong>, <strong>dragging files</strong>, and <strong>jumping between different tabs</strong> again and again.</p><p>Now with <strong>MCP inside VSCode</strong>, you can just tell your AI:</p><blockquote><em>“Create a </em><em>LoginFeature folder inside </em><em>src/features, add a </em><em>LoginPage.jsx and a </em><em>LoginPage.css, update </em><em>routes.js to add </em><em>/login, and move old </em><em>Auth.js file into </em><em>archive/.&quot;</em></blockquote><p>And the AI will <strong>understand</strong>, <strong>create</strong>, <strong>edit</strong>, and <strong>organise</strong> everything inside your project, without you doing it all manually.</p><p><em>Simple words:</em><br>You <strong>ask</strong>. It <strong>acts</strong>. It gets things <strong>done</strong>.</p><h3><strong>What is MCP?</strong></h3><p><strong>Model Context Protocol</strong> helps AI models to <strong>talk</strong> with real-world tools.<br>Like your computer’s file system, internet, database, and more.</p><p>Without MCP, AI can only suggest text.<br>With MCP, AI can <strong>create files</strong>, <strong>search folders</strong>, <strong>save data</strong>, <strong>run commands</strong>, and more.</p><p><em>Simple words:</em><br><strong>MCP makes your AI strong and useful.</strong></p><h3><strong>Why MCP?</strong></h3><p>Imagine you are giving a hand to LLM (Chatgpt, Claude, Gemini). It moves from <em>suggesting</em> to <em>executing</em> inside real developer workflows.</p><ul><li><strong>Pre-built integrations for easy setup</strong><br> <em>Example:</em> Plug into Google Sheets or GitHub directly.</li><li><strong>Switch between LLM providers easily</strong><br> <em>Example:</em> Change from Openai to Anthropic smoothly.</li><li><strong>Best practices to secure your data</strong><br> <em>Example:</em> Encrypt sensitive data before storing</li></ul><h3>MCP Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0wFe3DxOB620FEFY-VwHQ.jpeg" /></figure><h4>MCP Hosts</h4><p>Programs like <strong>Claude Desktop</strong>, IDEs, or AI tools that want to access data through the MCP.<br><em>Example:</em> A tool like <strong>VSCode </strong>acts as an MCP Host.</p><h4>MCP Clients</h4><p>These are programs or protocols that connect directly with the MCP Server.<br><em>Example:</em> An AI assistant like <strong>Chatgpt</strong> acts as an MCP Client.</p><h4>MCP Servers</h4><p>Lightweight programs that expose specific capabilities through the Model Context Protocol.<br><em>Example:</em> A program that allows <strong>AI</strong> to access your <strong>local project files</strong> securely. It acts as an MCP Server.</p><h3>Integration MCP Server with VSCode:</h3><p><a href="https://arunkumarvallal.medium.com/how-to-quickly-set-up-the-file-system-mcp-server-in-vscode-npx-d0a158071732">How to Quickly Set Up the File System MCP Server in VSCode(npx)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aab3c9c6269c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native with React Compiler]]></title>
            <link>https://arunkumarvallal.medium.com/react-native-with-react-compiler-c35af540fd06?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/c35af540fd06</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react-compiler]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Tue, 05 Nov 2024 15:14:52 GMT</pubDate>
            <atom:updated>2024-11-06T05:41:10.306Z</atom:updated>
            <content:encoded><![CDATA[<p>It was an awesome month (October 2024) for React and React Native devs, there were a lot of updates and releases in React and React Native.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oLLoL9zhuL2ebrZVCcpshw.png" /></figure><p>React dropped a public beta version of the React Compiler at React India. React Native dropped a big update with a brand-new architecture. if you want to know more about the new Architecture 👉 <a href="https://medium.com/@arunkumarvallal/react-native-new-architecture-8267f28c7d65">Check here</a>.</p><p>This blog will show you how to integrate React Compiler in a New React Native Project and how to try it out successfully. I am a big fan of React Native Cli, the below methods use the @react-native-community/cli.</p><p>Let’s create a new <strong>React Native (RN) </strong>project with version <strong>0.76</strong>. Run the below command in the terminal and I am using the name of the new RN project as <strong>RNWithCompiler</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBazO6R2-y-Gf6FD6UHodA.png" /></figure><h3>Integration of React Compiler</h3><blockquote>Awesome! If you nailed the command on your first try, you&#39;re super lucky. If you run into some errors, don&#39;t stress about it; that’s totally normal. Trust me, I went through the same thing too!</blockquote><p>The compiler is currently released as beta . The Compiler supports React 17+. To install the Beta:</p><pre>npm install -D babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta</pre><p>Or, if you’re using Yarn:</p><pre>yarn add -D babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta</pre><p>By this, we have installed the Compiler as <strong>Babel-plugin</strong> in the Application. Along with the Compiler, we have also installed <strong>eslint-plugin</strong> for the Compiler.</p><h4>Why eslint-plugin-react-compiler?</h4><p>You may wonder why we are installing the <strong>eslint plugin</strong> for the compiler.</p><p>The ESLint plugin is here to help! It displays any violations of React rules right in your editor.</p><p>If you notice a warning, don’t worry — it just means that the compiler has decided not to optimize that particular component or hook. This is totally fine! The great news is that the compiler can still recover and keep optimizing the other components in your codebase.</p><p>Replace your .<strong>eslintrc.js</strong> file with the below code,</p><pre>module.exports = {<br>  root: true,<br>  extends: &#39;@react-native&#39;,<br>  plugins: [<br>    &#39;eslint-plugin-react-compiler&#39;,<br>  ],<br>  rules: {<br>    &#39;react-compiler/react-compiler&#39;: &#39;error&#39;,<br>  },<br>}</pre><h4>Using React Compiler with React 17 or 18</h4><p>We are using React 18, we need to install the extra react-compiler-runtime package.</p><pre>npm install react-compiler-runtime@beta</pre><p>In Addition to that, add the correct target to your compiler config, where target the major version of React you are targeting:</p><p>Replace your <strong>babel.config.js </strong>file with the below code,</p><pre>const ReactCompilerConfig = {<br>  target: &#39;18&#39; // &#39;17&#39; | &#39;18&#39; | &#39;19&#39;<br>};<br><br>module.exports = {<br>  presets: [&#39;module:@react-native/babel-preset&#39;],<br>  plugins: [<br>    [&#39;babel-plugin-react-compiler&#39;, ReactCompilerConfig],<br>  ],<br>};</pre><p>Hurray!!!, 🎉 You’ve successfully integrated the React Compiler into your React Native project! We’re so close to finishing up. Let’s kick things off by starting the application with a fun sample counter code!</p><h4>Execute Application</h4><p>Replace the contents of<strong> App.tsx</strong> with the code provided below.</p><pre>import React, { useState } from &#39;react&#39;;<br>import {<br>  Button,<br>  SafeAreaView,<br>  StatusBar,<br>  StyleSheet,<br>  Text,<br>  useColorScheme,<br>  View,<br>} from &#39;react-native&#39;;<br><br>import {<br>  Colors,<br>} from &#39;react-native/Libraries/NewAppScreen&#39;;<br><br>function App(): React.JSX.Element {<br>  const isDarkMode = useColorScheme() === &#39;dark&#39;;<br><br>  const backgroundStyle = {<br>    backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,<br>    flex: 1,<br>  };<br>  const [count, setCount] = useState(0);<br><br>  return (<br>    &lt;SafeAreaView style={backgroundStyle}&gt;<br>      &lt;StatusBar<br>        barStyle={isDarkMode ? &#39;light-content&#39; : &#39;dark-content&#39;}<br>        backgroundColor={backgroundStyle.backgroundColor}<br>      /&gt;<br>     &lt;View style={styles.container}&gt;<br>      &lt;Text style={styles.countText}&gt;Hello World {Date.now()}&lt;/Text&gt;<br>      &lt;Text style={styles.countText}&gt;Count: {count}&lt;/Text&gt;<br>      &lt;Button title=&quot;Increment&quot; onPress={() =&gt; setCount(count + 1)} /&gt;<br>      &lt;Button title=&quot;Decrement&quot; onPress={() =&gt; setCount(count - 1)} /&gt;<br>     &lt;/View&gt;<br>    &lt;/SafeAreaView&gt;<br>  );<br>}<br><br>const styles = StyleSheet.create({<br>  container: {<br>    flex: 1,<br>    justifyContent: &#39;center&#39;,<br>    alignItems: &#39;center&#39;,<br>    alignContent: &#39;center&#39;,<br>  },<br>  countText: {<br>    fontSize: 24,<br>    fontWeight: &#39;600&#39;,<br>  },<br>});<br><br>export default App;</pre><p>Now, let&#39;s start the application as per the <strong>README.md.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9wMFzFL9v7g_JOJovdNYw.gif" /></figure><p>Woohoo! 🎉 You’ve absolutely crushed it by diving into the React Compiler and checking out how it operates in your React Native app! What an amazing achievement!</p><h3>Bonus</h3><p>If you’re eager to dive into how the React compiler operates within a React Native application but feel overwhelmed by all the steps, don’t worry—I’ve got you covered! Let’s explore this thrilling journey together!</p><p><strong>Github Repo. </strong>👉. <a href="https://github.com/Arunkumarvallal/RNWithCompiler">RNWithCompiler</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EjPYl-1tc5yeymSFAjCwdA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c35af540fd06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Become a Pro at Commit Messages using Commitlint]]></title>
            <link>https://arunkumarvallal.medium.com/become-a-pro-at-commit-messages-using-commitlint-56dab86333b3?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/56dab86333b3</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[commit]]></category>
            <category><![CDATA[lint]]></category>
            <category><![CDATA[commit-lint]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Mon, 23 Oct 2023 03:31:35 GMT</pubDate>
            <atom:updated>2023-10-23T03:31:35.622Z</atom:updated>
            <content:encoded><![CDATA[<p>As a developer, I’ve often found myself uncertain about what to include in a commit message, a challenge I’m sure many developers can relate to.</p><p>When hundreds of individuals work on the same project, they will all have different ideas for creating commit messages. It will soon throw your commits into chaos. Fortunately, there is a lint that will require developers to adhere to the same formatting guidelines.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252874%252C144%252C226%252C1%2529%26t%3Dmaterial%26wt%3Dnone%26l%3Dapplication%252Fx-sh%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D44px%26ph%3D37px%26ln%3Dfalse%26fl%3D1%26fm%3DFira%2BCode%26fs%3D14px%26lh%3D152%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dgit%252520commit%252520-m%252520%2527Added%2527%252520%25252F%25252FBad%252520Commit%25250A%25250Agit%252520commit%252520-m%252520%2527feat%25253A%252520Included%252520a%252520new%252520feature%2527%252520%25252F%25252FGood%252520Commit%26tb%3DCommit%252520Message&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252874%25252C144%25252C226%25252C1%252529%26t%3Dmaterial%26wt%3Dnone%26l%3Dapplication%25252Fx-sh%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D44px%26ph%3D37px%26ln%3Dfalse%26fl%3D1%26fm%3DFira%2BCode%26fs%3D14px%26lh%3D152%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dgit%25252520commit%25252520-m%25252520%252527Added%252527%25252520%2525252F%2525252FBad%25252520Commit%2525250A%2525250Agit%25252520commit%25252520-m%25252520%252527feat%2525253A%25252520Included%25252520a%25252520new%25252520feature%252527%25252520%2525252F%2525252FGood%25252520Commit%26tb%3DCommit%25252520Message&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/be8e786eee8e31200555f1fdd381c8ea/href">https://medium.com/media/be8e786eee8e31200555f1fdd381c8ea/href</a></iframe><blockquote>A well-written code with a lousy commit message is like a beautifully baked cake with no frosting.</blockquote><p>The <a href="https://commitlint.js.org/#/">commitlint</a> adheres to specific formatting guidelines to avoid chaos and provides a universal structure that everyone can easily read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*sjJapehXWDS_M6IwwUxvtw.png" /></figure><h3>Commitlint</h3><p><a href="https://commitlint.js.org/#/">Commitlint</a> maintains <strong><em>consistent</em></strong> formatting and <strong><em>style</em></strong> for commit messages in version control systems like <strong><em>Git</em></strong>. It helps ensure that developers follow a specific <strong><em>set of rules</em></strong> or conventions when writing commit messages, making it easier to manage and maintain a project’s commit history and generate<strong><em> changelogs.</em></strong></p><p>Commitlint is often used in conjunction with other tools and libraries, such as <a href="https://typicode.github.io/husky/"><strong><em>Husky</em></strong></a> and <strong><em>Lint-staged</em></strong>, to perform checks on commit messages before they are approved and committed to the repository. This guarantees that all commits follow a set standard or format, such as recommendations for the structure, length, and content of commit messages.</p><h4>Commit Structure</h4><p>The commit message should be structured as follows:</p><pre>type(scope?): subject #scope is optional; multiple scopes are supported (current delimiter options: “/”, “\” and “,”)<br>body?<br>footer?</pre><blockquote>A commit that has the text BREAKING CHANGE: at the beginning of its optional body or footer section introduces a breaking API change.</blockquote><p>The<strong> </strong><a href="https://www.conventionalcommits.org/en/v1.0.0/"><strong><em>Conventional Commits</em></strong></a> specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history, which makes it easier to write automated tools on top of it. This convention corresponds with <a href="http://semver.org/"><strong>SemVer</strong></a>, by describing the features, fixes, and breaking changes made in commit messages.</p><pre>//Real-World Example<br>chore: run tests on travis ci</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*naLIcn5hr9OiBwmopSLucQ.png" /></figure><h4>Commits Elements</h4><ol><li><strong>type</strong></li></ol><p>A prefix for the commit message describing the type of change. The type is a noun. The following are the different types:</p><ul><li>build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)</li><li>ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)</li><li>chore: Changes which doesn&#39;t change source code or tests, e.g. changes to the build process, auxiliary tools, and libraries</li><li>docs: Documentation only changes</li><li>feat: A new feature</li><li>fix: A bug fix</li><li>perf: A code change that improves performance</li><li>refactor: A code change that neither fixes a bug nor adds a feature</li><li>revert: Revert something</li><li>style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc)</li><li>test: Adding missing tests or correcting existing tests</li></ul><p>Examples</p><pre>build: update npm dependency<br><br>ci: add circleci configuration file<br><br>docs: fix typo in foo.md and bar.md<br><br>perf: optimize database query for faster response times<br><br>feat: allow provided config object to extend other configs<br><br>fix: resolve issue with incorrect data rendering<br><br>refactor: reorganize code structure for better readability<br><br>style: format code according to Prettier standards<br><br>test: add unit tests for user authentication</pre><p>Check these pages to see the officially allowed types.</p><ul><li><a href="https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type"><em>Type</em></a> section on the Angular repo. This is linked from the Conventional Commits website as “Angular Convention”. It explains what build etc. means.</li><li><a href="https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional#type-enum"><em>Allowed types</em></a> defined in the docs of the config-conventional section of the commitlint repo. This presumably works closely or exactly with the Angular standard.</li></ul><p>2. <strong>scope</strong></p><p>The standard defines the use of an optional scope, which is used in addition to the required type.</p><p><em>An optional scope MAY be provided after a type.</em></p><p><em>A scope is a phrase describing a section of the codebase enclosed in parenthesis.</em></p><p><em>e.g. ‘fix(parser):’ This would be specific to a particular project, so you cannot know the general scopes for all projects. The standard says you should agree with your team on what the scope would be. Perhaps based on features, projects or directories.</em></p><p>Examples using scope:</p><pre>build(deps): upgrade packages<br><br>style(deps): remove whitespace in requirements.txt<br><br>feat(lang): add Polish language</pre><h3>Commit message with multi-paragraph body and multiple footers</h3><pre>fix: prevent racing of requests<br><br>Introduce a request id and a reference to latest request. Dismiss<br>incoming responses other than from latest request.<br><br>Remove timeouts which were used to mitigate the racing issue but are<br>obsolete now.<br><br>Reviewed-by: Z<br>Refs: #123</pre><h4>Specification</h4><p>1. Commits MUST be prefixed with a type, which consists of a verb, feat, fix, etc., followed by a colon and a space.</p><p>2. The type feat MUST be used when a commit adds a new feature to your application or library.</p><p>3. The type fix MUST be used when a commit represents a bug fix for your application.</p><p>4. An optional scope MAY be provided after a type. A scope is a phrase describing a section of the codebase enclosed in parent­hesis, e.g., fix(pa­rser):</p><p>5. A descri­ption MUST immedi­ately follow the type/scope prefix. The descri­ption is a short descri­ption of the pull request, e.g.,</p><pre>fix: array parsing issue when multiple spaces were contained in string.</pre><p>6. A longer commit body MAY be provided after the short descri­ption. The body MUST begin with one blank line after the description.</p><p>7. A footer MAY be provided with one blank line after the body. The footer SHOULD contain additional meta-i­nfo­rmation about the pull-r­equest (such as the issues it fixes, e.g., fixes #13, #5 ).</p><p>8. Breaking changes MUST be indicated at the very beginning of the footer or body section of a commit. A breaking change MUST consist of the uppercase text BREAKING CHANGE, followed by a colon and a space.</p><p>9. A descri­ption MUST be provided after the BREAKING CHANGE: describing what has changed about the API, e.g., BREAKING CHANGE: environment variables now take precedence over config files.</p><p>10. Types other than feat and fix MAY be used in your commit messages.</p><p>The upcoming article will focus on the <strong><em>custom commitlint</em></strong> and its integration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56dab86333b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Your React Native Project: A Guide to an Effective Directory Structure]]></title>
            <link>https://techmusings.optisolbusiness.com/optimizing-your-react-native-project-a-guide-to-an-effective-directory-structure-d671e406876b?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/d671e406876b</guid>
            <category><![CDATA[folder-structure]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[hybrid-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Sun, 23 Jul 2023 14:41:33 GMT</pubDate>
            <atom:updated>2023-08-03T10:41:55.938Z</atom:updated>
            <content:encoded><![CDATA[<p>React Native has emerged as a powerful framework for building cross-platform mobile applications, enabling developers to create feature-rich apps for both iOS and Android with a single codebase. However, as apps grow in complexity, maintaining a clean and organized project structure becomes vital for seamless development and codebase management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fpn-X9Z227LDPHUb40a6yQ.png" /></figure><p>In this article, we will explore the best practices for organizing your React Native project folder to ensure scalability, maintainability, and collaboration among your development team.</p><blockquote>A well-structured project not only enhances code readability but also streamlines the debugging process, improves onboarding for new developers, and allows for easy integration of new features.</blockquote><h3>Presenting the entire Director Structure</h3><pre>|-- src<br>    |-- assets<br>        |-- images       // Store image assets<br>        |-- fonts        // Store custom fonts<br>    |-- components       // Reusable components<br>        |-- Button.tsx<br>        |-- TextInput.tsx<br>        |-- ...<br>    |-- screens          // Screen components<br>        |-- HomeScreen.tsx<br>        |-- ProfileScreen.tsx<br>        |-- ...<br>    |-- navigation       // Navigation-related files<br>        |-- AppNavigator.ts<br>        |-- MainTabNavigator.ts<br>        |-- ...<br>    |-- services         // Services or utility functions<br>        |-- api.ts<br>        |-- localization.ts<br>        |-- ...<br>    |-- redux           // Redux-related files (if using Redux for state management)<br>        |-- actions.ts<br>        |-- reducers.ts<br>        |-- store.ts<br>        |-- ...<br>    |-- utils            // Helper functions or utilities<br>        |-- helpers.ts<br>        |-- constants.ts<br>        |-- ...<br>    |-- types            // storing all TypeScript interfaces and types.<br>        |-- userInterface.ts<br>        |-- ...<br>    |-- App.tsx           // Entry point of the application<br>    |-- index.js         // Main JS file for registering the app</pre><h4><strong>The Directory Structure</strong></h4><p>Here is a bird&#39;s-eye view of the recommended directory structure:</p><pre>| -- src<br>     | -- assets<br>     | -- screens<br>     | -- navigation<br>     | -- services<br>     | -- components<br>     | -- types<br>     | -- redux<br>     | -- utils</pre><p>Let’s go through each directory and its purpose in more detail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNt_yg1zyPs8JzFScHiYyg.jpeg" /></figure><h4><strong>1. assets</strong></h4><p>For optimal organization, store all static assets, like fonts and images, in the “assets” directory. Consider creating individual subdirectories within it for each asset type. For example:</p><pre>|-- assets<br>    | -- fonts<br>    | -- images</pre><h4><strong>2. screens</strong></h4><pre>|-- screens<br>    | -- Home<br>          | -- index.tsl<br>          | -- style.s<br>    | -- Settings<br>          | -- index.ts<br>          | -- style.ts</pre><p>In the project structure, place all application screens or pages within the screens directory. Each screen should have its dedicated directory with the following files:</p><p>index.js This file will export the screenName as the default export for a shortened import path.</p><p>styles.js Store the screen’s styles in this file.</p><p>helper.ts For utility functions like business logic or state management, you can use this file. For instance, you could have a function that returns the button Color based on a specific status. It’s advisable to keep the logic in your component file to a minimum. This approach promotes code abstraction and testability.</p><p>components (optional) Any reusable components used by the screen.</p><h4><strong>3. navigation</strong></h4><p>In the project, the navigation directory is the designated location for storing all code related to navigation functionality. This directory should include the following components:</p><p>NavigationContainer This is the top-level component that acts as a wrapper for all the screens in your application. It manages the navigation state and provides the necessary context for navigation to work correctly.</p><p>Route The “Route” folder is where you define and manage your application routes. This includes configuring various navigation stacks, tab bars, and drawers, which are essential for defining the flow between different screens or sections of your app.</p><p>NavigationService The “NavigationService” file is responsible for encapsulating the reference to your defined routes. It acts as an intermediary layer for handling navigation from outside components, such as deep links or notifications. This way, other parts of your app can trigger navigation without directly accessing the navigation components.</p><p>linking The configuration for deep linking.</p><h4><strong>4. services</strong></h4><p>In the project, the services directory serves as the designated location for storing all code related to external services, particularly APIs. Organizing your services into separate subdirectories for each service type is a recommended practice. This structure allows for better maintainability and clarity when dealing with different services.</p><pre>| -- screens<br>     | -- API<br>     | -- AuthService<br>     | -- DataService<br>     | -- PaymentService<br>     | -- ThirdPartyService<br>     | -- NotificationService<br></pre><p>Within the “services” directory, you may have the following subdirectories:</p><p>API This subdirectory is intended for code related to general API communication or for common API functionalities that may be shared across different services.</p><p>AuthService In this subdirectory, you would place code related to authentication services, such as handling user login, registration, and token management.</p><p>DataService The “DataService” subdirectory is where you’d put code for handling data-related services, such as fetching, updating, and managing data from various sources.</p><p>PaymentService This subdirectory would contain code specific to payment-related services, such as integrating with payment gateways and processing transactions.</p><p>NotificationService In this subdirectory, you would place code for handling push notifications and interacting with notification APIs.</p><p>ThirdPartyService For any other external services not fitting into the above categories, you can create a “ThirdPartyService” subdirectory to accommodate them.</p><h4><strong>5. components</strong></h4><p>The “components” directory is the designated location for storing all reusable components. To ensure a consistent and organized structure, each component should have its directory containing the following files:</p><p>index.tsThis file serves as the main entry point for the component, allowing you to import and use it more conveniently elsewhere in your codebase.</p><p>ComponentName.tsx The TypeScript file (with the .tsx extension) is the actual implementation of the component. It contains the JSX code and TypeScript typings for the component’s props and state, ensuring type safety and better code clarity.</p><p>styles.ts The “styles.ts” file holds the styling information for the component. You can define the component’s CSS or any other styling related to its appearance in this file.</p><h4><strong>6. types</strong></h4><p>The “types” folder serves as the designated location for storing all TypeScript interfaces and types. Utilizing TypeScript in your project allows you to catch errors during compile-time instead of run-time, leading to a more robust and safer codebase.</p><pre>// UserInterface.ts<br>export interface User {<br>id: string;<br>name: string;<br>email: string;<br>// Other user-related properties<br>}<br>export interface UserProfile {<br>userId: string;<br>bio: string;<br>// Other profile-related properties<br>}```bash</pre><h4>7. redux</h4><pre>| -- redux<br>     | -- store.ts<br>     | -- slices<br>     | -- UserSlice.ts<br>     | -- PostSlice.ts</pre><p>if you are using Redux as the state management library, it’s a good practice to create a separate folder to organize all Redux-related files. The “redux” folder should contain the following files:</p><p>store.ts This file is responsible for creating the Redux store and configuring it with any middleware or enhancers required for your app. The store is the central place that holds the state of your application.</p><p>slices This folder should contain all the Redux slices in your app. A Redux slice represents a distinct piece of the Redux store that can be updated independently of the rest of the store. Each slice should be placed in a separate file with a descriptive name that reflects the data or functionality it manages. For example, you can have a ```UserSlice.ts``` file to handle user-related data.</p><p>In store.ts, you would configure and create the Redux store:</p><pre>// store.ts<br>import { configureStore, getDefaultMiddleware } from &#39;@reduxjs/toolkit&#39;;<br>import rootReducer from &#39;./slices&#39;;<br>const middleware = […getDefaultMiddleware()];<br>const store = configureStore({<br>reducer: rootReducer,<br>middleware,<br>});<br>export default store;</pre><p>In UserSlice.ts, you would define the Redux slice for managing user-related data:</p><pre>// UserSlice.ts<br>import { createSlice, PayloadAction } from &#39;@reduxjs/toolkit&#39;;<br>interface UserState {<br>id: string;<br>name: string;<br>email: string;<br>// Other user-related properties<br>}<br>const initialState: UserState = {<br>id: &#39;&#39;,<br>name: &#39;&#39;,<br>email: &#39;&#39;,<br>// Other initial values<br>};<br>const userSlice = createSlice({<br>name: &#39;user&#39;,<br>initialState,<br>reducers: {<br>setUser: (state, action: PayloadAction&lt;UserState&gt;) =&gt; {<br>return { …state, …action.payload };<br>},<br>// Other user-related reducers<br>},<br>});<br>export const { setUser } = userSlice.actions;<br>export default userSlice.reducer;</pre><p><strong>8. utils</strong></p><p>The “utils” folder is a convenient location to house various utility functions and helper classes that don’t directly belong to a specific feature or module of the app. These utility functions can be utilized across different parts of the app to perform common tasks, enhance functionality, or handle specific operations in a reusable and centralized manner.</p><pre>|-- utils<br>    | -- Analytics.ts<br>    | -- Validator.ts<br>    | -- Logger.ts<br>    | -- ErrorManager.ts<br>    | -- string.ts<br>    | -- constants.ts<br>    | -- enums.ts</pre><p>Analytics.ts This file may contain functions or classes responsible for handling analytics events, such as tracking user interactions, page views, or custom events for a better understanding of user behaviour and app performance.</p><p>Validator.ts The “Validator.ts” file can include utility functions or classes related to data validation. These functions can be used to validate user inputs, form fields, or any other data that needs to conform to specific rules or constraints.</p><p>Logger.ts In “Logger.ts,” you may have functions or classes dedicated to logging activities and messages. These utilities can help with debugging, error tracking, and providing insights into the application’s behavior during development.</p><p>ErrorManager.ts The “ErrorManager.ts” file can contain utility functions or classes responsible for handling and managing errors consistently. This may include custom error types, error handling strategies, or error reporting to external services.</p><p>string.ts In this file, you might find utility functions related to string manipulation, such as formatting, truncating, or parsing strings.</p><p>constants.ts The “constants.ts” file can hold various constants and configuration values used throughout the app. This keeps the constants centralized, making it easier to modify them in one place if needed.</p><p>enums.ts In “enums.ts,” you can define enumerations or constant sets that represent specific options or choices within the app. This can help avoid hardcoding values and provide a more semantic way of representing data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d671e406876b" width="1" height="1" alt=""><hr><p><a href="https://techmusings.optisolbusiness.com/optimizing-your-react-native-project-a-guide-to-an-effective-directory-structure-d671e406876b">Optimizing Your React Native Project: A Guide to an Effective Directory Structure</a> was originally published in <a href="https://techmusings.optisolbusiness.com/">Tech Musings</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overview of React Native MMKV: Efficient Key-Value Storage]]></title>
            <link>https://arunkumarvallal.medium.com/overview-of-react-native-mmkv-efficient-key-value-storage-42a19baa01f9?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/42a19baa01f9</guid>
            <category><![CDATA[hybrid-app-development]]></category>
            <category><![CDATA[async]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[npm-package]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Sat, 15 Jul 2023 14:43:00 GMT</pubDate>
            <atom:updated>2023-07-15T14:43:00.229Z</atom:updated>
            <content:encoded><![CDATA[<p>MMKV: A Compact and User-Friendly Mobile Key-Value Storage Framework Designed for WeChat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mEaqdjyhSHW3-IxB8NOefA.png" /></figure><p>MMKV is an open-source, high-performance, efficient key-value storage solution. It is designed to be used in mobile apps and is optimized for speed and memory usage. MMKV is built on top of the key-value storage engine LevelDB and provides a simple API for storing and retrieving data.</p><p>MMKV is designed to be used in situations where speed and memory usage are critical. It is also easy to use and requires minimal configuration. MMKV is available for both iOS and Android platforms and can be used in React Native apps.</p><h3>Benefits of Using MMKV</h3><p>MMKV provides several benefits over other storage solutions. Here are some of the key benefits:</p><ul><li><strong>High Performance:</strong> MMKV is built for speed and is optimized for mobile app usage. It is designed to use minimal memory and provide fast access to data.</li><li><strong>Efficient Storage:</strong> MMKV uses levelDB as its storage engine, which is a highly efficient key-value storage solution. This means that MMKV can store large amounts of data without using too much memory.</li><li><strong>Easy to Use:</strong> MMKV provides a simple API for storing and retrieving data. It is easy to integrate into your React Native app and requires minimal configuration.</li><li><strong>Cross-Platform:</strong> MMKV is available for both iOS and Android platforms. This means that you can use it in your React Native app and have a consistent storage solution across both platforms.</li></ul><p>MMKV is highly optimized for mobile app usage and can store large amounts of data while minimizing memory usage. This makes it ideal for use in mobile apps where resources are limited and performance is critical.</p><h3>Advanced Features of MMKV</h3><p>In addition to its core features, MMKV also provides several advanced features that can be useful in certain situations. Here are some of the most notable features:</p><ul><li><strong>Encryption:</strong> MMKV provides built-in encryption support, which allows you to protect your data from unauthorized access.</li><li><strong>Compression:</strong> MMKV supports data compression, which can help reduce the size of your data and improve performance.</li><li><strong>Transactions:</strong> MMKV supports transactions, which allow you to group multiple operations into a single transaction. This can help improve the performance of your app, especially when dealing with a large amount of data.</li><li><strong>Observers:</strong> MMKV has a built-in feature called observers, which allows you to subscribe to changes in the data. This can be useful if you need to update the UI when the data changes.</li></ul><h3>Use Cases</h3><p>MMKV is an ideal solution for mobile apps that need to store data efficiently and quickly. Here are some common use cases for MMKV:</p><ul><li><strong>User Preferences:</strong> MMKV can be used to store user preferences, such as language settings, font sizes, and other settings.</li><li><strong>User Data:</strong> MMKV can store user-generated data, such as notes, addresses, and other information.</li><li><strong>Caching:</strong> MMKV can be used to cache data that is frequently accessed, such as images or other media files.</li><li><strong>Session Data:</strong> MMKV can store session data, such as login credentials, to improve the user experience.</li></ul><h4>MMKV vs. Async Storage: A Comparison</h4><p><strong>Performance:</strong></p><ul><li>MMKV is optimized for mobile app usage and leverages the efficient levelDB storage engine.</li><li>Async Storage, relying on SQLite, might be slower and less efficient for certain use cases.</li></ul><p><strong>Ease of Use:</strong></p><ul><li>MMKV offers a straightforward API for storing and retrieving data, with minimal setup required.</li><li>Async Storage may involve more configuration and differences in APIs between iOS and Android.</li></ul><p><strong>Advanced Features:</strong></p><ul><li>MMKV provides encryption, compression, transactions, and observers.</li><li>Async Storage lacks these advanced features, potentially limiting its application in certain scenarios.</li></ul><p><strong>Memory Usage:</strong></p><ul><li>MMKV is designed to use minimal memory, which is crucial for resource-constrained mobile apps.</li><li>Async Storage may consume more memory under specific circumstances.</li></ul><p>In conclusion, MMKV proves to be a powerful and efficient key-value storage solution for React Native, outperforming Async Storage in various aspects.</p><h3>React Native Storage Benchmark</h3><p><a href="https://github.com/mrousavy/StorageBenchmark">StorageBenchmark</a> compares popular storage libraries against each other by reading a value from storage for 1000 times:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*zyjaZlEy_hU29U4dFNdgZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*v6sX7AfLoqGWl6nK6XoneA.png" /><figcaption>MMKV vs other storage libraries: Reading a value from Storage 1000 times.<br>Measured in milliseconds on an iPhone 11 Pro, lower is better.</figcaption></figure><p>React Native <strong><em>0.68</em></strong>, with Hermes enabled, was used to benchmark the performance of various database libraries. The benchmark involved calling a get operation (retrieving one value from the database) a thousand times.</p><blockquote>The results, ranked from fastest to slowest, are as follows:</blockquote><ul><li>react-native-mmkv: 12ms 👑</li><li>WatermelonDB: 53ms</li><li>RealmDB: 81ms</li><li>react-native-quick-sqlite: 82ms</li><li>AsyncStorage: 242ms</li></ul><p>MMKV was found to be 20 times faster than AsyncStorage (the slowest), and 4 times faster than WatermelonDB (the second fastest)!</p><h3>How to Implement MMKV in React Native</h3><p>Implementing MMKV in your React Native project is easy. Here are the steps:</p><p>Install the MMKV package using npm:</p><pre>npm install react-native-mmkv-storage --save</pre><p>Import the MMKV package in your React Native app:</p><pre>import MMKV from &#39;react-native-mmkv-storage&#39;;</pre><p>Use the MMKV API to store and retrieve data:</p><pre>// Store a value<br>MMKV.set(&#39;key&#39;, &#39;value&#39;);</pre><pre>// Retrieve a value<br>const value = MMKV.get(&#39;key&#39;);</pre><p>That’s it! You can now use MMKV to store and retrieve data in your React Native app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42a19baa01f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring the New Architecture in React Native: A Comprehensive Overview]]></title>
            <link>https://arunkumarvallal.medium.com/react-native-new-architecture-8267f28c7d65?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/8267f28c7d65</guid>
            <category><![CDATA[hybrid-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Sun, 02 Jul 2023 08:38:40 GMT</pubDate>
            <atom:updated>2023-07-03T17:27:03.810Z</atom:updated>
            <content:encoded><![CDATA[<p>We dive into the new architecture overview of React Native’s internals. This conceptual exploration is designed to provide library authors and core contributors with a deep understanding of React Native. While app developers can still find value in this overview, it’s not a prerequisite for effectively using React Native.</p><p>However, gaining insights into the inner workings of React Native can empower developers to make informed decisions and optimize their app development process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*abwbWuc8p4upHwYdOAK_-w.png" /></figure><h3>Why New Architecture?</h3><p>The New Architecture aims to address the performance and flexibility issues prevalent in the old architecture. This updated approach aims to overcome the challenges and limitations that hindered the previous system.</p><h4>Old Architecture’s Limitations:</h4><ul><li>The asynchronous nature added unnecessary waiting time between layers.</li><li>Single-threaded JavaScript limits computation to one thread.</li><li>JSON serialization and deserialization caused extra overhead in</li><li>The bridge is a bottleneck for fast communication.</li></ul><h4>New Architecture’s Improvements</h4><ul><li><strong>Better Host Platform Interoperability</strong>: Synchronous layout calculation for smooth integration</li><li>Concurrency with JavaScript invoking functions on different threads</li><li>Elimination of serialization and deserialization overhead</li><li>Enhanced code sharing through C++ abstraction.</li><li>Type safety is ensured with generated code from typed JS specifications.</li><li><strong>Improved Performance:</strong> Cross-platform renderers benefit from platform-specific optimizations.</li><li><strong>Consistency:</strong> Ensures uniformity across different platforms.</li><li><strong>Faster Startup:</strong> Lazily initializes host components by default.</li><li><strong>Reduced data serialization:</strong> Direct data access via JavaScript Interfaces (JSI).</li></ul><h3>What is the new Architecture?</h3><p>The core concepts of React Native still hold in the New Architecture:</p><ul><li>Native modules remain the preferred approach for platform-specific API integration.</li><li>Native components continue to offer reusable UI components for a native experience.</li></ul><h4>Pillars of New Architecture</h4><p><strong>The JavaScript Interface (JSI)</strong> will replace the bridge and make communication between JavaScript and the Native thread possible.</p><p>● <strong>Fabric</strong> is React Native’s new rendering engine, an evolution of the legacy renderer.</p><p>● <strong>Turbo Modules </strong>is the next upgraded version of Native Modules, with a few extra benefits.</p><p>● <strong>CodeGen </strong>is a tool that helps with type safety between both worlds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I67gRaVrDNetsVWvXzZN7g.jpeg" /><figcaption>Overview of the New Architecture</figcaption></figure><p><strong>JavaScript Interface (JSI)</strong><br>The New Architecture includes a crucial element known as the JSI (JavaScript Interface), which acts as a link between the JavaScript layer and the native layer. Implemented in C++, JSI is not limited to specific platforms like Android or iOS but can seamlessly integrate with any codebase written in C++.</p><p>JSI utilizes reference objects, which store C++ pointers, to facilitate communication between the two layers. These reference objects enable direct method invocation from JavaScript to native elements and allow the native layer to send events to JavaScript. This shared ownership between layers promotes synchronous communication, enabling React Native to efficiently update the UI by sending synchronous messages to the native side for immediate action.</p><p>By leveraging JSI, the New Architecture enhances the interoperability and performance of React Native across different platforms and ensures a smoother, more responsive user experience.</p><p><strong>Turbo Modules</strong></p><p>JSI has revolutionized the communication between the JavaScript and Native layers in React Native. This direct communication enables JavaScript to send high-priority messages directly to the Native layer. Additionally, JavaScript can now load native modules on demand, rather than having to load them all at the start of the application as in the old architecture.</p><p>For instance, in the previous architecture, if an application needed camera functionality, the camera module had to be loaded at the application’s start, regardless of whether the camera was used immediately. However, in the new architecture, the camera module can be loaded when needed, even on a specific screen.</p><p><strong>Fabric</strong></p><p>Fabric is the evolved rendering system, unifying logic in C++, enhancing host platform interoperability, and unlocking new capabilities for React Native.</p><p>The rendering pipeline can be broken into three general phases:</p><p>1. Render</p><p>2. Commit</p><p>3. Mount</p><p><strong>Render</strong></p><p>React executes code logic to create React Element Trees in JavaScript, and the renderer then generates a corresponding React Shadow Tree in C++. When parent-child relationships are established within the React Element Nodes, the renderer mirrors these relationships in the React Shadow Nodes, thus constructing the React Shadow Tree.</p><p><strong>Commit</strong></p><p>The commit phase consists of two tasks.</p><ul><li>The<strong> layout calculation</strong> task uses the style information from the React Element Tree node and the root React Shadow Tree’s style constraints to determine the size and position of each React Shadow Tree node using the Yoga layout manager.</li><li>The <strong>tree promotion</strong> task elevates the newly created React Shadow Tree as the “Next Tree,” signifying that it contains all the necessary information for mounting on the screen and represents the latest state of the React Element Tree.</li></ul><p><strong>Mount</strong></p><p>The mounting phase encompasses three tasks.</p><ul><li>The <strong>tree diffing</strong> step compares the previously rendered tree with the newly created “Next Tree” in C++. This process involves flattening the React Shadow tree to eliminate redundant “Host View” nodes.</li><li>The <strong>tree promotion</strong> task promotes the “Next Tree” to become the “Rendered Tree,” indicating that it is ready for rendering.</li><li>The <strong>view mounting</strong> task performs atomic mutation operations on the relevant host views, executing on the UI thread of the host platform.</li></ul><p><strong>CodeGen<br></strong>As C++ is strongly typed and JavaScript or TypeScript is not, an interface is needed to facilitate communication between the two. The “CodeGen” tool generates interfaces from JavaScript or TypeScript, enabling seamless communication between the C++ and JavaScript worlds. These interfaces bridge the gap and ensure smooth interaction between the two languages.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8267f28c7d65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mix Panel in React Native — Tracking Events — Part 2]]></title>
            <link>https://arunkumarvallal.medium.com/mix-panel-in-react-native-tracking-events-part-2-6fdaac2270cd?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fdaac2270cd</guid>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[mixpanel]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Thu, 13 Oct 2022 17:46:06 GMT</pubDate>
            <atom:updated>2022-10-13T17:46:06.887Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mix Panel in React Native — Tracking Events — Part 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dOEGZq81rtD2CPq0SYKD7w.jpeg" /></figure><p>If you haven’t done the installation, please follow the instructions in the link <a href="https://techmusings.optisolbusiness.com/setting-up-mix-panel-in-react-native-storing-user-profile-d94c5c40e8a6">here</a>.</p><h3><strong>Track Event</strong></h3><p>In Mixpanel, a track event can be done with the <em>track() </em>function. It is effortless to understand the track function.</p><pre>track(eventName, properties)</pre><p>Every call to track eventually results in a data point sent to Mixpanel. These data points are measured, counted, and broken down to create your Mixpanel reports. Events have a string name and an optional set of name/value pairs that describe the properties of that event.</p><p>Parameters:</p><p>eventName(String): The name of the event to send.</p><p>properties(Object): A map containing the key-value pairs of the properties to include in this event. Null if no extra properties exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6SKP0eFIwY-5e4yS4S0ow.png" /></figure><p>An Example of a Sample Event without properties:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252874%252C144%252C226%252C1%2529%26t%3Dmaterial%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D44px%26ph%3D37px%26ln%3Dfalse%26fl%3D1%26fm%3DFira%2BCode%26fs%3D14px%26lh%3D152%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%25252FTrack%252520an%252520event%252520without%252520a%252520property%25250Amixpanel.track%2528%2527Sample%252520Event%2527%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252874%25252C144%25252C226%25252C1%252529%26t%3Dmaterial%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D44px%26ph%3D37px%26ln%3Dfalse%26fl%3D1%26fm%3DFira%2BCode%26fs%3D14px%26lh%3D152%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%2525252FTrack%25252520an%25252520event%25252520without%25252520a%25252520property%2525250Amixpanel.track%252528%252527Sample%25252520Event%252527%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f1e43129f47bf3b5d1b7e12f9f41942/href">https://medium.com/media/8f1e43129f47bf3b5d1b7e12f9f41942/href</a></iframe><p>An Example of a Sample Event with properties:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252874%252C144%252C226%252C1%2529%26t%3Dmaterial%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D44px%26ph%3D37px%26ln%3Dfalse%26fl%3D1%26fm%3DFira%2BCode%26fs%3D14px%26lh%3D152%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%25252FTrack%252520an%252520event%252520with%252520a%252520property%25250Amixpanel.track%2528%2527Sample%252520Event%2527%25252C%25250A%25257B%25250A%252520%252520name%25253A%2527Sample%2527%25252C%252520%25250A%252520%252520id%25253A101%25252C%25250A%252520%252520plan%25253A%2527Trial%2527%25252C%25250A%252520%252520city%25253A%2527New%252520york%2527%25252C%25250A%252520%252520platform%25253A%2527iOS%2527%25250A%25257D%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252874%25252C144%25252C226%25252C1%252529%26t%3Dmaterial%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D44px%26ph%3D37px%26ln%3Dfalse%26fl%3D1%26fm%3DFira%2BCode%26fs%3D14px%26lh%3D152%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%2525252FTrack%25252520an%25252520event%25252520with%25252520a%25252520property%2525250Amixpanel.track%252528%252527Sample%25252520Event%252527%2525252C%2525250A%2525257B%2525250A%25252520%25252520name%2525253A%252527Sample%252527%2525252C%25252520%2525250A%25252520%25252520id%2525253A101%2525252C%2525250A%25252520%25252520plan%2525253A%252527Trial%252527%2525252C%2525250A%25252520%25252520city%2525253A%252527New%25252520york%252527%2525252C%2525250A%25252520%25252520platform%2525253A%252527iOS%252527%2525250A%2525257D%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b44af1698f8a6bd853e4b1bb611c236f/href">https://medium.com/media/b44af1698f8a6bd853e4b1bb611c236f/href</a></iframe><h3>Time Event</h3><p>You can track the time it took for an action to occur, such as an image upload or a comment post, by using <em>timeEvent()</em>. This will mark the “start” of your action, which will be timed until you finish with a track call. The time duration is then recorded in the “Duration” property.</p><pre>timeEvent(eventName)</pre><p>Start the timing of an event. Calling <em>timeEvent(“Thing”)</em> will not send an event, but when you eventually call track(“Thing”), your tracked event will be sent with a “$duration” property, representing the number of seconds between your calls.</p><p>Parameters:</p><p>eventName(String): the name of the event to track with timing.</p><p>An Example of a Sample Time Event:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252874%252C144%252C226%252C1%2529%26t%3Dmaterial%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D44px%26ph%3D37px%26ln%3Dfalse%26fl%3D1%26fm%3DFira%2BCode%26fs%3D14px%26lh%3D152%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%25252F%252520start%252520the%252520timer%252520for%252520the%252520event%252520%252522Sample%252520Event%252522%25250Amixpanel.timeEvent%2528%252522Sample%252520Event%252522%2529%25253B%25250A%25252F%25252F...some%252520time%252520later%25250Amixpanel.track%2528%252522Sample%252520Event%252522%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252874%25252C144%25252C226%25252C1%252529%26t%3Dmaterial%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D44px%26ph%3D37px%26ln%3Dfalse%26fl%3D1%26fm%3DFira%2BCode%26fs%3D14px%26lh%3D152%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%2525252F%25252520start%25252520the%25252520timer%25252520for%25252520the%25252520event%25252520%25252522Sample%25252520Event%25252522%2525250Amixpanel.timeEvent%252528%25252522Sample%25252520Event%25252522%252529%2525253B%2525250A%2525252F%2525252F...some%25252520time%25252520later%2525250Amixpanel.track%252528%25252522Sample%25252520Event%25252522%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d5c449025d653b09cae22dd5ebcfbe7/href">https://medium.com/media/0d5c449025d653b09cae22dd5ebcfbe7/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fdaac2270cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up Mix Panel in React Native — Storing User Profile]]></title>
            <link>https://techmusings.optisolbusiness.com/setting-up-mix-panel-in-react-native-storing-user-profile-d94c5c40e8a6?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/d94c5c40e8a6</guid>
            <category><![CDATA[mixpanel]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-native-development]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Thu, 18 Aug 2022 14:35:58 GMT</pubDate>
            <atom:updated>2022-09-28T11:54:36.313Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setting up Mix Panel in React Native — Storing User Profile</h3><p>Mixpanel helps teams to learn from their user data and evolve quickly in order to create great solutions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*jAI4cfxPOx3Q1nlMUU1WGQ.png" /></figure><p>Let us first go through the prerequisites for implementing Mix Panel.</p><ul><li>React Native v0.6+</li></ul><p><strong>Step 1: Install Mixpanel React Native SDK.</strong></p><p>Run the below command in your project folder.</p><pre>npm install mixpanel-react-native</pre><p>After the npm install, under your application’s ios folder, run — iOS</p><pre>pod install<br>or<br>arch -x86_64 pod install</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-WeKvMaKD17KVJz25FSKg.png" /></figure><p><strong>Step 2: Initialize Mix Panel in the application</strong></p><p>You must first initialize with your project token. You can get your project token from <a href="https://mixpanel.com/settings/project"><em>project settings</em></a><em>.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%25280%252C0%252C0%252C1%2529%26t%3Dseti%26wt%3Dnone%26l%3Dauto%26width%3D580%26ds%3Dfalse%26dsyoff%3D0px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dimport%252520%25257B%252520Mixpanel%252520%25257D%252520from%252520%2527mixpanel-react-native%2527%25253B%25250A%25250Aconst%252520mixpanel%252520%25253D%252520new%252520Mixpanel%2528%252522Your%252520Project%252520Token%252522%2529%25253B%25250Amixpanel.init%2528%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%2525280%25252C0%25252C0%25252C1%252529%26t%3Dseti%26wt%3Dnone%26l%3Dauto%26width%3D580%26ds%3Dfalse%26dsyoff%3D0px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dimport%25252520%2525257B%25252520Mixpanel%25252520%2525257D%25252520from%25252520%252527mixpanel-react-native%252527%2525253B%2525250A%2525250Aconst%25252520mixpanel%25252520%2525253D%25252520new%25252520Mixpanel%252528%25252522Your%25252520Project%25252520Token%25252522%252529%2525253B%2525250Amixpanel.init%252528%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1a9f036935858711b3e865cac0b531b4/href">https://medium.com/media/1a9f036935858711b3e865cac0b531b4/href</a></iframe><p>Once you’ve called this method once, you can access mixpanel throughout the rest of your application.</p><h3>Storing User Profiles</h3><p>User profiles can be saved in Mixpanel. Profiles are long-term collections of attributes that characterize a person, such as a name, email address, and signup date. You can use profiles to explore and segment users by who they are, rather than what they did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*TXjqUWh0DgOuAGYYI0SRtQ.png" /></figure><blockquote>Before you send profile updates, you must call mixpanel.identify(). This ensures that you only have actual registered users saved in the system.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%25280%252C0%252C0%252C1%2529%26t%3Dseti%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dfalse%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D15px%26lh%3D146%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%25252F%252520identify%252520must%252520be%252520called%252520before%25250A%25252F%25252F%252520user%252520profile%252520properties%252520can%252520be%252520set%25250Amixpanel.identify%2528%252522123456%252522%2529%25253B%25250A%25250A%25252F%25252F%252520Sets%252520user%252520123456%2527s%252520%252522Plan%252522%252520attribute%252520to%252520%252522Premium%252522%25250Amixpanel.getPeople%2528%2529.set%2528%252522Plan%252522%25252C%252520%252522Premium%252522%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%2525280%25252C0%25252C0%25252C1%252529%26t%3Dseti%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dfalse%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D15px%26lh%3D146%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%2525252F%25252520identify%25252520must%25252520be%25252520called%25252520before%2525250A%2525252F%2525252F%25252520user%25252520profile%25252520properties%25252520can%25252520be%25252520set%2525250Amixpanel.identify%252528%25252522123456%25252522%252529%2525253B%2525250A%2525250A%2525252F%2525252F%25252520Sets%25252520user%25252520123456%252527s%25252520%25252522Plan%25252522%25252520attribute%25252520to%25252520%25252522Premium%25252522%2525250Amixpanel.getPeople%252528%252529.set%252528%25252522Plan%25252522%2525252C%25252520%25252522Premium%25252522%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cba35b98818590b16795360b2332faff/href">https://medium.com/media/cba35b98818590b16795360b2332faff/href</a></iframe><p>This will set a “Plan” property, with a value “Premium”, on user 123456’s profile. If there isn’t a profile with distinct_id 123456 in Mixpanel already, a new profile will be created. If user 123456 already has a property named “Plan” in their profile, the old value will be overwritten with “Premium”.</p><p>It is not mandatory to use the number, you can use distinct strings for the user, for example, you can use <em>email id, and phone number…</em></p><p>There are a few limitations:</p><ul><li>Your property names should not begin with $ or mp_. These properties are reserved for special properties sent by Mixpanel.</li><li>Your property names cannot begin or end with a space as they will automatically be trimmed.</li><li>Your property names and values cannot be longer than 255 characters. In practice, they should be much shorter than that. Property names get cut off by our user interface at about 20 characters.</li></ul><p><strong>Reserved Properties for User Profiles<br></strong>These reserved properties are different from default collected properties, as they are not collected by default.</p><ul><li>Avatar ($avatar) — Set this property to a URL resource of a gif, jpg, jpeg, or png to update the profile picture in a profile. This property will override a <a href="https://help.mixpanel.com/hc/en-us/articles/115004553863">profile picture pulled from Gravatar</a>.</li><li>Email ($email) — The user’s email address. You must set this property if you want to send users emails from Mixpanel.</li><li>Phone ($phone) — The user’s phone number. You must set this property if you want to send users SMS from Mixpanel. Note that a ‘+’ needs to precede phone numbers. This is especially useful for international numbers. If the user does not import a phone number with the ‘+’ sign in front of the number, the country code will be prefixed to the front of the number based on the $country_code property, resulting in a phone number with two country codes.</li><li>$distinct_id — The user’s distinct_id. This property value should be identical to the distinct_id property attached to events so that you can connect events to user profiles.</li><li>$ios_devices — List of users’ Apple Push Notification service device tokens for the iOS push. Our iOS client library has <a href="https://developer.mixpanel.com/docs/ios">methods to manage this property for you</a>.</li><li>$android_devices — List of users’ Google Cloud Messaging registration IDs for Android push. Our Android client library has <a href="https://developer.mixpanel.com/docs/android">methods to manage this property for you</a>.</li><li>$first_name, $last_name, $name — User’s first and last names, as well as a general name. These are primarily useful because we will use them, if available, in a few spots in our reports.</li><li>$transactions — A list with specially formatted JSON objects, one for each purchase or transaction associated with a specific profile. For more information about $transactions, see Tracking revenue in <a href="https://help.mixpanel.com/hc/en-us/articles/115004730086-Mixpanel-HTTP-Tracking-API#Tracking_revenue">Mixpanel HTTP Tracking API</a>.</li><li>Created ($created) — The time that the profile was created.</li><li>City ($city) — The city of the event sender, parsed from IP.</li><li>Region ($region) — The region (state or province) of the event sender, parsed from IP.</li><li>Country ($country_code) — The country of the event sender, parsed from IP.</li><li>Timezone — ($timezone) — The timezone of the event sender, parsed from IP. If set, messages can be scheduled to be sent based on a user’s timezone.</li><li>Unsubscribed — ($unsubscribed) — If this property is set to any value, a user will be unsubscribed from Mixpanel email messages.</li><li>Bucket ($bucket and bucket) — A reserved property that is hidden from the Mixpanel interface, and will cause other events to not appear in the interface. Do not name any property bucket or $bucket.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%25280%252C0%252C0%252C1%2529%26t%3Dseti%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dfalse%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D15px%26lh%3D146%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%252520%252520%252520%252520mixpanel.identify%2528%2527example%252540gmail.com%2527%2529%25253B%25250A%252520%252520%252520%252520mixpanel.getPeople%2528%2529.set%2528%25250A%252520%252520%252520%252520%252520%252520%25257B%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524first_name%25253A%252520%2527Arun%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524last_name%25253A%252520%2527Kumar%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524name%25253A%252520%2527Arun%252520Kumar%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524email%25253A%252520%2527example%252540gmail.com%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524phone%25253A%252520%25271223456789%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524avatar%25253A%252520%2527https%25253A%25252F%25252Fibb.co%25252FGJpW4mm%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524city%25253A%2527Mumbai%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524timezone%25253A%2527Asia%25252Fkolkata%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252524created%25253A%252725%252520july%2525202022%2527%25252C%25250A%252520%252520%252520%252520%252520%252520%25257D%25250A%252509%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%2525280%25252C0%25252C0%25252C1%252529%26t%3Dseti%26wt%3Dnone%26l%3Djavascript%26width%3D680%26ds%3Dfalse%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D15px%26lh%3D146%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252520%25252520%25252520%25252520mixpanel.identify%252528%252527example%25252540gmail.com%252527%252529%2525253B%2525250A%25252520%25252520%25252520%25252520mixpanel.getPeople%252528%252529.set%252528%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524first_name%2525253A%25252520%252527Arun%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524last_name%2525253A%25252520%252527Kumar%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524name%2525253A%25252520%252527Arun%25252520Kumar%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524email%2525253A%25252520%252527example%25252540gmail.com%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524phone%2525253A%25252520%2525271223456789%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524avatar%2525253A%25252520%252527https%2525253A%2525252F%2525252Fibb.co%2525252FGJpW4mm%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524city%2525253A%252527Mumbai%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524timezone%2525253A%252527Asia%2525252Fkolkata%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252524created%2525253A%25252725%25252520july%252525202022%252527%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%2525257D%2525250A%25252509%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fbc36e23da0a4d247bf3b934649d24f0/href">https://medium.com/media/fbc36e23da0a4d247bf3b934649d24f0/href</a></iframe><p>You can set properties on a user profile with <a href="https://mixpanel.github.io/mixpanel-react-native/People.html#set">mixpanel.getPeople().set</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d94c5c40e8a6" width="1" height="1" alt=""><hr><p><a href="https://techmusings.optisolbusiness.com/setting-up-mix-panel-in-react-native-storing-user-profile-d94c5c40e8a6">Setting up Mix Panel in React Native — Storing User Profile</a> was originally published in <a href="https://techmusings.optisolbusiness.com/">Tech Musings</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Navigation Header]]></title>
            <link>https://techmusings.optisolbusiness.com/react-navigation-header-bdec3d035838?source=rss-9ef51a3e8163------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdec3d035838</guid>
            <category><![CDATA[react-navigation]]></category>
            <category><![CDATA[react-hook]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[navigation]]></category>
            <dc:creator><![CDATA[Arun kumar V]]></dc:creator>
            <pubDate>Tue, 29 Jun 2021 09:38:12 GMT</pubDate>
            <atom:updated>2022-10-12T09:38:56.005Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Tried of coding a separate custom Navigation Header in React Native. In this Article, you will explore Navigation headers for React native.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b2tixCQWV8TEaBjp.jpeg" /></figure><p>In React Navigation (5x), the most common way to interact with a header is by tapping on a button either to the left or the right of the title. Let’s add a button to the right side of the header.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528255%252C255%252C255%252C1%2529%26t%3Dseti%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D25px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dtrue%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dfunction%252520StackScreen%2528%2529%252520%25257B%25250A%252520%252520return%252520%2528%25250A%252520%252520%252520%252520%25253CStack.Navigator%25253E%25250A%252520%252520%252520%252520%252520%252520%25253CStack.Screen%25250A%252520%252520%252520%252520%252520%252520%252520%252520name%25253D%252522Home%252522%25250A%252520%252520%252520%252520%252520%252520%252520%252520component%25253D%25257BHomeScreen%25257D%25250A%252520%252520%252520%252520%252520%252520%252520%252520options%25253D%25257B%25257B%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520headerTitle%25253A%252520%2528props%2529%252520%25253D%25253E%252520%25253CLogoTitle%252520%25257B...props%25257D%252520%25252F%25253E%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520headerRight%25253A%252520%2528%2529%252520%25253D%25253E%252520%2528%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25253CButton%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520onPress%25253D%25257B%2528%2529%252520%25253D%25253E%252520alert%2528%2527This%252520is%252520a%252520button%2521%2527%2529%25257D%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520title%25253D%252522Info%252522%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520color%25253D%252522%252523fff%252522%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25252F%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%2529%25252C%25250A%252520%252520%252520%252520%252520%252520%252520%252520%25257D%25257D%25250A%252520%252520%252520%252520%252520%252520%25252F%25253E%25250A%252520%252520%252520%252520%25253C%25252FStack.Navigator%25253E%25250A%252520%252520%2529%25250A%25257D%25250A&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528255%25252C255%25252C255%25252C1%252529%26t%3Dseti%26wt%3Dnone%26l%3Dauto%26ds%3Dtrue%26dsyoff%3D25px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dtrue%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dfunction%25252520StackScreen%252528%252529%25252520%2525257B%2525250A%25252520%25252520return%25252520%252528%2525250A%25252520%25252520%25252520%25252520%2525253CStack.Navigator%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%2525253CStack.Screen%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520name%2525253D%25252522Home%25252522%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520component%2525253D%2525257BHomeScreen%2525257D%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520options%2525253D%2525257B%2525257B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520headerTitle%2525253A%25252520%252528props%252529%25252520%2525253D%2525253E%25252520%2525253CLogoTitle%25252520%2525257B...props%2525257D%25252520%2525252F%2525253E%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520headerRight%2525253A%25252520%252528%252529%25252520%2525253D%2525253E%25252520%252528%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253CButton%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520onPress%2525253D%2525257B%252528%252529%25252520%2525253D%2525253E%25252520alert%252528%252527This%25252520is%25252520a%25252520button%252521%252527%252529%2525257D%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520title%2525253D%25252522Info%25252522%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520color%2525253D%25252522%25252523fff%25252522%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525252F%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%252529%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525257D%2525257D%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%2525252F%2525253E%2525250A%25252520%25252520%25252520%25252520%2525253C%2525252FStack.Navigator%2525253E%2525250A%25252520%25252520%252529%2525250A%2525257D%2525250A&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e5e9266db92d69450eaf40dfdeece5a/href">https://medium.com/media/4e5e9266db92d69450eaf40dfdeece5a/href</a></iframe><p>In the above scenario, the functionality cannot be provided dynamically for the particular screen. There is some lack of functionality in this case. The render option for <strong><em>headerRight</em></strong> is not dynamically provided by <strong><em>react-navigation (5x).</em></strong></p><blockquote>In order to achieve the above scenario, the solution for rendering header buttons that takes care of the correct styling is provided by the <a href="https://github.com/vonovak/react-navigation-header-buttons">react-navigation-header-buttons</a>.</blockquote><h4>React-navigation-header-buttons</h4><p>The package will assist you in rendering navigation bar buttons and handling styling so you don’t have to. It strives to replicate the look of native navbar buttons and provides a simple and flexible interface for you to interact with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*9U6zp2myM_XM6vKYgPmgBQ.gif" /></figure><p>The rendering of the buttons on the current screen can be done in the navigation header using navigation <strong><em>setOptions</em></strong>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528255%252C255%252C255%252C1%2529%26t%3Dseti%26wt%3Dnone%26l%3Dtext%252Ftypescript-jsx%26ds%3Dtrue%26dsyoff%3D25px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dtrue%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%252520default%252520function%252520Profile%2528%25257Bnavigation%25257D%2529%252520%25257B%25250A%252520%252520React.useLayoutEffect%2528%2528%2529%252520%25253D%25253E%252520%25257B%25250A%252520%252520%252520%252520navigation.setOptions%2528%25257B%25250A%252520%252520%252520%252520%252520%252520headerRight%25253A%252520%2528%2529%252520%25253D%25253E%252520%2528%25250A%252520%252520%252520%252520%252520%252520%25250A%252520%252520%252520%252520%252520%252520%252520%252520%25253CHeaderButtons%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25253CTouchableWithoutFeedback%252520style%25253D%25257B%25257Bflex%25253A%2525201%25252C%252520alignItems%25253A%252520%2527flex-start%2527%25252C%252520marginRight%25253A20%25257D%25257D%252520onPress%25253D%25257B%2528%2529%25253D%25253Ealert%2528%252522Filter%252522%2529%25257D%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25253CImage%252520source%25253D%25257Brequire%2528%2527..%25252FAssets%25252FImages%25252Ffilter.png%2527%2529%25257D%252520%25252F%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25253C%25252FTouchableWithoutFeedback%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25253CTouchableWithoutFeedback%252520style%25253D%25257B%25257BmarginRight%25253A10%25257D%25257D%252520onPress%25253D%25257B%2528%2529%25253D%25253Ealert%2528%252522Search%252522%2529%25257D%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25253CImage%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520source%25253D%25257Brequire%2528%2527..%25252FAssets%25252FImages%25252Fsearch_icon.png%2527%2529%25257D%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520style%25253D%25257B%25257Bheight%25253A%25252020%25252C%252520width%25253A%25252020%25257D%25257D%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25252F%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%25253C%25252FTouchableWithoutFeedback%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%25253C%25252FHeaderButtons%25253E%25250A%252520%252520%252520%252520%252520%252520%2529%25252C%25250A%252520%252520%252520%252520%25257D%2529%25253B%25250A%252520%252520%25257D%25252C%252520%25255Bnavigation%25255D%2529%25253B%25250A%25250A%252520%252520return%252520%2528%25250A%252520%252520%252520%252520%25253CView%252520style%25253D%25257B%25257Bflex%25253A%2525201%25252C%252520alignItems%25253A%252520%2527center%2527%25252C%252520justifyContent%25253A%252520%2527center%2527%25257D%25257D%25253E%25250A%252520%252520%252520%252520%252520%252520%25253CText%25253EProfile%25253C%25252FText%25253E%25250A%252520%252520%252520%252520%25253C%25252FView%25253E%25250A%252520%252520%2529%25253B%25250A%25257D%25250A&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528255%25252C255%25252C255%25252C1%252529%26t%3Dseti%26wt%3Dnone%26l%3Dtext%25252Ftypescript-jsx%26ds%3Dtrue%26dsyoff%3D25px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dtrue%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%25252520default%25252520function%25252520Profile%252528%2525257Bnavigation%2525257D%252529%25252520%2525257B%2525250A%25252520%25252520React.useLayoutEffect%252528%252528%252529%25252520%2525253D%2525253E%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520navigation.setOptions%252528%2525257B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520headerRight%2525253A%25252520%252528%252529%25252520%2525253D%2525253E%25252520%252528%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253CHeaderButtons%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253CTouchableWithoutFeedback%25252520style%2525253D%2525257B%2525257Bflex%2525253A%252525201%2525252C%25252520alignItems%2525253A%25252520%252527flex-start%252527%2525252C%25252520marginRight%2525253A20%2525257D%2525257D%25252520onPress%2525253D%2525257B%252528%252529%2525253D%2525253Ealert%252528%25252522Filter%25252522%252529%2525257D%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253CImage%25252520source%2525253D%2525257Brequire%252528%252527..%2525252FAssets%2525252FImages%2525252Ffilter.png%252527%252529%2525257D%25252520%2525252F%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253C%2525252FTouchableWithoutFeedback%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253CTouchableWithoutFeedback%25252520style%2525253D%2525257B%2525257BmarginRight%2525253A10%2525257D%2525257D%25252520onPress%2525253D%2525257B%252528%252529%2525253D%2525253Ealert%252528%25252522Search%25252522%252529%2525257D%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253CImage%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520source%2525253D%2525257Brequire%252528%252527..%2525252FAssets%2525252FImages%2525252Fsearch_icon.png%252527%252529%2525257D%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520style%2525253D%2525257B%2525257Bheight%2525253A%2525252020%2525252C%25252520width%2525253A%2525252020%2525257D%2525257D%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525252F%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253C%2525252FTouchableWithoutFeedback%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253C%2525252FHeaderButtons%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%252529%2525252C%2525250A%25252520%25252520%25252520%25252520%2525257D%252529%2525253B%2525250A%25252520%25252520%2525257D%2525252C%25252520%2525255Bnavigation%2525255D%252529%2525253B%2525250A%2525250A%25252520%25252520return%25252520%252528%2525250A%25252520%25252520%25252520%25252520%2525253CView%25252520style%2525253D%2525257B%2525257Bflex%2525253A%252525201%2525252C%25252520alignItems%2525253A%25252520%252527center%252527%2525252C%25252520justifyContent%2525253A%25252520%252527center%252527%2525257D%2525257D%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%2525253CText%2525253EProfile%2525253C%2525252FText%2525253E%2525250A%25252520%25252520%25252520%25252520%2525253C%2525252FView%2525253E%2525250A%25252520%25252520%252529%2525253B%2525250A%2525257D%2525250A&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b16c6f091514b4f691095cbd9e3311e/href">https://medium.com/media/0b16c6f091514b4f691095cbd9e3311e/href</a></iframe><p>With the use of <strong><em>navigation.setOptions</em></strong>, the header may be readily customised. The custom header options are possible with this package.</p><p>The functionality can be dynamically accessed from a particular screen. So that, the passing of <strong>params</strong> will be easy and will not have any problem in passing it like in the <strong><em>react-navigation</em></strong>.</p><p>The data can be easily flown in the headers. As a result, this package so efficient by not building a custom header with a back button and a title each time in a project.</p><p>The main components in the react-navigation-header-buttons are</p><pre>  HeaderButtons<br>  HeaderButton<br>  Item<br>  HiddenItem<br>  OverflowMenu</pre><blockquote>For further understanding checkout here <a href="https://github.com/vonovak/react-navigation-header-buttons">react-navigation-header-buttons</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdec3d035838" width="1" height="1" alt=""><hr><p><a href="https://techmusings.optisolbusiness.com/react-navigation-header-bdec3d035838">React Navigation Header</a> was originally published in <a href="https://techmusings.optisolbusiness.com/">Tech Musings</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>