<?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 Abdur Mohammed on Medium]]></title>
        <description><![CDATA[Stories by Abdur Mohammed on Medium]]></description>
        <link>https://medium.com/@rafayk66?source=rss-4f91e038d1be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MJEYGAIC1LKB0Dw7TCHvYg.jpeg</url>
            <title>Stories by Abdur Mohammed on Medium</title>
            <link>https://medium.com/@rafayk66?source=rss-4f91e038d1be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:07:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rafayk66/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[Android Security: How to connect Frida to Android Emulator]]></title>
            <link>https://medium.com/@rafayk66/android-security-how-to-connect-frida-to-android-emulator-33259be11b90?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/33259be11b90</guid>
            <category><![CDATA[friday]]></category>
            <category><![CDATA[android-security]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Thu, 01 May 2025 14:05:28 GMT</pubDate>
            <atom:updated>2025-05-01T14:05:28.259Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Native Shorts | Simple| To the point</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*O3v5DvVZ3UQjHBNMXC4n-g.png" /></figure><p>To test resiliency of your android app towards reverse engineering, you need to understand and use tools generally used to reverse engineer android apks one of which is Frida. Today’s tutorial will focus on how you can hook Frida to your emulator.</p><h3>Pre-requisite:</h3><ul><li>Rooted android emulator. Learn how to create one in one of my previous articles <a href="https://medium.com/@rafayk66/android-security-how-to-create-rooted-android-emulator-b561a6dce724">here</a>.</li></ul><h3><strong>Step 1: Install Frida on your mac</strong></h3><ul><li>Python installed on your local. If you don’t have it installed, you can run the following command using homebrew on your terminal.</li></ul><pre>brew install python</pre><ul><li>Restart terminal. Now run the following</li></ul><pre>brew install pipx<br>pipx ensurepath</pre><ul><li>Now install frida by running the command</li></ul><pre>pipx install frida-tools</pre><h3>Step 2: Download Frida-server for your emulator</h3><ul><li>Go to the following link <a href="https://github.com/frida/frida/releases">https://github.com/frida/frida/releases</a></li><li>Download the android frida server based of your emulator type. For example mine is arm64 so will download.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*uexW52Txt54ltK-ZxT0ADQ.png" /></figure><ul><li>Make sure it is server not anything else like devkit etc.</li><li>Extract it by double clicking the file. Now feel free to delete xz since you already extracted.</li></ul><h3>Step 3: Transfer the file and install the frida server on your rooted emulator.</h3><ul><li>Again if you don’t have a rooted emulator, please follow the instructions here to create one <a href="https://medium.com/@rafayk66/android-security-how-to-create-rooted-android-emulator-b561a6dce724">https://medium.com/@rafayk66/android-security-how-to-create-rooted-android-emulator-b561a6dce724</a></li><li>Make sure your emulator is running. In terminal go to the folder where the file is downloaded and run the following command to push the file to the emulator.</li></ul><pre>adb push &lt;your-frida-server-file-name&gt; /data/local/tmp/</pre><ul><li>Set the permissions to execute the frida server on the emulator.</li></ul><pre>adb shell chmod 755 /data/local/tmp/&lt;your-frida-server-file-name&gt;</pre><ul><li>Time to execute the frida server on the emulator. Run the following command</li></ul><pre>adb shell /data/local/tmp/&lt;your-frida-server-file-name&gt;</pre><ul><li>Your terminal should look something like this</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*e58B7-0M_9VrCjdwdh9lig.png" /></figure><h3>Step 4: Test the connection</h3><ul><li>Keep the terminal window open from previous step and open a new one and run the following command.</li></ul><pre>frida-ps -U</pre><ul><li>If the connection between frida on your local and frida server on your emulator is established, the terminal should show all the processes running in your emulator</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*VtsBSbLUkOdvvYNxfntM7A.png" /></figure><ul><li>You can attach to a known process like this</li></ul><pre>frida -U -f com.android.settings</pre><p>or you can specify your app name like this.</p><ul><li>For the above step, it will open settings app in your emulator and your terminal looks like this</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q7gUpxh3f6nTffuSOTRg-g.png" /></figure><ul><li>Now you can execute commands within the app that you used frida to connect to, in this example case it is the settings app</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*Yw0X0A_IGChy9PzHjXJW4Q.png" /></figure><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><h3>Please find more react native articles here:</h3><p><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33259be11b90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Security: How to create rooted Android emulator]]></title>
            <link>https://medium.com/@rafayk66/android-security-how-to-create-rooted-android-emulator-b561a6dce724?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/b561a6dce724</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[android-security]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Wed, 23 Apr 2025 23:26:51 GMT</pubDate>
            <atom:updated>2025-05-01T14:39:12.490Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Native Shorts | Simple| To the point</h3><p>An important part of adding security of the app is to dev test how resilient your app is towards reverse engineering by a hacker. This tutorial will focus on creating a rooted emulator which is usually used by hackers.</p><h3>Step 1:</h3><ul><li>Open android studio then go to tools -&gt; device manager.</li><li>Click on ‘+’ create device and choose a device (Example Pixel 9Pro)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*rWiiJdfzcO1V_Zkl5BsI2A.png" /></figure><h3>Step 2: (Very Important)</h3><ul><li>Choose a image which is NOT google play image like Google API. It won’t work with google play image</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8g3jOxvtUig9y4HDTsstDQ.png" /></figure><ul><li>Download the image if required.</li><li>Click on finish then next.</li></ul><h3>Step 3:</h3><ul><li>Make sure ADB is installed. You can check by running the following in your terminal. If installed, you will see something like this</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*X5im1iAiPuBapIdXNQ5ObA.png" /></figure><ul><li>Else you will see command not found.</li><li>Install ADB either through brew or manually.</li></ul><pre>brew install android-platform-tools</pre><h3>Step 4:</h3><ul><li>The emulator we created in step 1 &amp; 2 by default allows root access. Even if it is not, run the following and it will restart it in root mode.</li></ul><pre>adb root</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*mwGO6N85GGTKHEn9Nh90_A.png" /></figure><ul><li>Run the following next</li></ul><pre>adb shell</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*PXUQ9DLfvecjjXHcck9r5A.png" /></figure><ul><li>Once you enter, enter command</li></ul><pre>whoami</pre><p>and you should see root like below and are good to go</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*puyqGBsGgtktiGqD35WAWw.png" /></figure><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><h3>Please find more react native articles here:</h3><p><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b561a6dce724" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native & WCAG Standards — Making your Mobile App more accessible]]></title>
            <link>https://medium.com/@rafayk66/react-native-wcag-standards-making-your-mobile-app-more-accessible-c2a2e22b4522?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2a2e22b4522</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[wcag]]></category>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Wed, 16 Apr 2025 14:15:04 GMT</pubDate>
            <atom:updated>2025-05-01T14:40:42.584Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Native &amp; WCAG Standards — Making your Mobile App more accessible</h3><h4>React Native Shorts | Simple| To the point</h4><p>This article shows the different ways in which your app can be made more accessible in alignment with WCAG 2.1 standards. Please note that the following is not an exhaustive list.</p><h3>Approach</h3><p>This article will use WCAG 2.1 way to implement accessibility. In short POUR which stands for</p><ol><li>Perceivable</li><li>Operable</li><li>Understandable</li><li>Robust</li></ol><h3>1. Perceivable</h3><ul><li>Information and user interface components must be presentable to users in ways they can perceive.</li></ul><h4>a. Text Alternatives (Guideline 1.1)</h4><ul><li>Example: Use accessibilityLabel to provide alt text for all images.</li></ul><pre>&lt;Image<br>  source={require(&#39;./dog.png&#39;)}<br>  accessibilityLabel=&quot;A dog&quot;<br>/&gt;</pre><h4>b. Provide alternatives for Media (Guideline 1.2)</h4><ul><li>Provide subtitles/Captions for any audio/video content.</li></ul><h4>c. Adaptable (Guideline 1.3)</h4><ul><li>Use <em>accessible={true}</em> for custom views. This indicates that the view is an accessiblity element which means all its children are treated as a single element.</li><li>On Android, it will be translated into <em>focusable={true}</em></li><li>Ensure layout works in potrait/landscape and on large/small fonts.</li></ul><h4>d. Distinguishable</h4><ul><li>Ensure sufficient color contrast.</li><li>Use allowFontScaling which specifies whether fonts should scale to respect Text Size accessibility settings.</li></ul><pre>&lt;Text allowFontScaling={true}&gt;This is scalable text&lt;/Text&gt;</pre><h3>2. Operable</h3><ul><li>User interface components and navigation must be operable.</li></ul><h4>a. Enough Time (Guideline 2.2)</h4><ul><li>If your app has timed activities, options should be provided to extend, adjust or turn off time limit.</li></ul><h4>b. Seizures and Physical Reactions (Guideline 2.3)</h4><ul><li>Do not design content in a way that is already known to cuse seizures or physical reactions.</li><li>No flashing more than 3 times per second.</li></ul><h4>c. Navigable (Guideline 2.4)</h4><ul><li>Provide users ways to help navigate, find content and determine where they are.</li><li>Use accessible roles and logical navigation</li></ul><pre>&lt;TouchableOpacity<br>  accessible={true}<br>  accessibilityRole=&quot;button&quot;<br>  accessibilityLabel=&quot;Submit&quot;<br>  onPress={onSubmitButtonPress}<br>&gt;<br>  &lt;Text&gt;Submit&lt;/Text&gt;<br>&lt;/TouchableOpacity&gt;</pre><h3>3. Understandable</h3><h4>a. Readable (Guideline 3.1)</h4><ul><li>Use simple easy to understand language</li><li>Would recommend to provide language info via accessibilityLanguage.</li></ul><pre>&lt;Text accessibilityLanguage=&quot;en&quot;&gt;Hello mate!&lt;/Text&gt;</pre><h4>b. Predictable (Guideline 3.2)</h4><ul><li>Make UI behaviour operate in a predictable way</li><li>UI should be consistent.</li><li>Avoid unexpected changes on focus or input.</li></ul><h4>c. Input Assistance (Guideline 3.3)</h4><ul><li>Help users avoid and correct mistakes.</li><li>Color alone is often not enough, use clear text based messages</li></ul><pre>{!emailValid &amp;&amp; (<br>  &lt;Text<br>    accessibilityLiveRegion=&quot;polite&quot;<br>    accessibilityRole=&quot;alert&quot;<br>    style={{ color: &#39;red&#39; }}<br>  &gt;<br>    Please enter a valid email address.<br>  &lt;/Text&gt;<br>)}</pre><h3>4. Robust</h3><ul><li>Content must be robust enough to be interpreted by assistive technologies such as Voice Over (iOS) and Talkback (Android).</li><li>Use right accessibilityRole (Button, header etc).</li><li>Make custom components more accessible by wrapping them with accessible={true} and providing an accessibility label.</li><li>Use accessibilityLiveRegion to polite (Android only)</li><li>Use importantForAccessibility (Android) and accessibilityElementsHidden(iOS) to avoid hiding important elements.</li><li>Example:</li></ul><pre>&lt;TouchableOpacity<br>  accessible={true}<br>  accessibilityRole=&quot;button&quot;<br>  accessibilityLabel=&quot;Save changes&quot;<br>  onPress={handleSave}<br>/&gt;</pre><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><h3>Please find more react native articles here:</h3><p><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2a2e22b4522" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native OTA Update Production app without Appstore/Playstore release]]></title>
            <link>https://medium.com/@rafayk66/react-native-ota-update-production-app-without-appstore-playstore-release-78f23551ca12?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/78f23551ca12</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[ota]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 04:37:24 GMT</pubDate>
            <atom:updated>2025-05-01T14:41:25.270Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Native OTA: Update Production app without Appstore/Playstore release</h3><h4>React native shorts | Short | Simple | To the point</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OSziWRzLMCTIjraQznVfLQ.png" /></figure><h3>Objective</h3><ul><li>To be able to update production <strong>REACT NATIVE CLI or Expo </strong>app (iOS &amp; Android) without App store or Playstore release using eas update.</li><li>I will be using Android for this example. iOS is similar but requires a Apple developer account.</li></ul><h3>Step 1: Install Expo on react native cli app</h3><ul><li>If not already installed, please install the expo module package in your app.</li></ul><pre>npx install-expo-modules@latest</pre><h3>Step 2: Install Expo CLI on your MAC.</h3><ul><li>Please run the following command</li></ul><pre>npm install --global eas-cli</pre><h3><strong>Step 3: Create Free Expo account if you don’t already have one</strong></h3><ul><li>You can do it here <a href="https://expo.dev/signup">expo.dev/signup</a></li></ul><h3>Step 4: Login to expo cli on your local</h3><ul><li>Run the following command to login if you have not already</li></ul><pre>eas login</pre><h3>Step 5: Initialise Eas in your app</h3><ul><li>Run the following command while being in the root of your project and follow the instructions.</li></ul><pre>eas init</pre><ul><li>Once done, you should be able to see the project also created online on your expo dev account (expo website)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L1KDBGVdK5SLZUUjS4JJ1w.png" /></figure><h3>Step 6: Configure your project for expo update</h3><ul><li>Run the following command in the root of your project.</li></ul><pre>eas update:configure</pre><ul><li>The command will install expo updates package and also add configuration to your app.json</li></ul><h3>Step 7: Configure Build</h3><ul><li>Run the following command in the root of your project and follow the instructions.</li><li>Note: I would configure for Android, since iOS requires paid developer account. Go for iOS if you have one.</li></ul><pre>eas build:configure</pre><ul><li>It will create a file eas.json in root of your project. This file specifies the channel property that we can use to send eas update</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*QpRU7PKLCgYJN3-pNFG3Eg.png" /></figure><h3>Step 8: Setting up the app to receive the update</h3><ul><li>Without any setup, app automatically downloads the updates on launch and runs the new code on the next launch.</li><li>However, if you want to take things under your control and download and run the update, you can access the expo updates api. Here’s an example</li></ul><pre>import * as Updates from &#39;expo-updates&#39;;<br><br>const App: () =&gt; Node = () =&gt; {<br>  async function onFetchUpdateAsync() {<br>    try {<br>      const update = await Updates.checkForUpdateAsync();<br>      if (update.isAvailable) {<br>        await Updates.fetchUpdateAsync();<br>        await Updates.reloadAsync();<br>      } else {<br>        alert(&#39;No update available&#39;);<br>      }<br>    } catch (error) {<br>      // You can also add an alert() to see the error message in case of an error when fetching updates.<br>      alert(`Error fetching latest Expo update: ${error}`);<br>    }<br>  }<br><br>  return (<br>    &lt;View<br>      style={{<br>        flex: 1,<br>        alignItems: &#39;center&#39;,<br>        justifyContent: &#39;center&#39;,<br>        backgroundColor: &#39;green&#39;,<br>      }}&gt;<br>      &lt;Button<br>        onPress={async () =&gt; {<br>          onFetchUpdateAsync();<br>        }}<br>        title=&quot;Check and download updates&quot;<br>      /&gt;<br>    &lt;/View&gt;<br>  );<br>};<br><br>export default App;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wQpzHzxJdItmGGD3yS8dQ.png" /></figure><h3>Step 9: Build and Run the project</h3><ul><li>For this article, I am going to use preview and will specify preview in the command below. This will create production like app but for internal use. You can use any you like. I won’t use development.</li><li>Run the following command and just like last step, I would use Android.</li></ul><pre>eas build --profile preview</pre><ul><li>If you check the expo website you’ll see the build running similar to this. Please wait for the build to complete.<br>Mines already build so you see a check mark, else you’ll see a cog running next to it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*unEylmt_yFrtCWT48TkSNg.png" /></figure><ul><li>Once the build is ready, you can download the installable by clicking on the build and install on your device.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UC3rfGAmplJj7qwRT3HZ5g.png" /></figure><h3>Step 10: Push the update</h3><ul><li>Now we’re ready to push the update. Make the change (for example: change background color etc) and then run the following command in the root.</li></ul><pre>eas update --channel preview --platform android  --message &quot;update 7&quot;</pre><ul><li>Here we specify the channel, platform and the message.</li><li>Once done the update is ready to be downloaded and run without any app store or playstore release</li></ul><h3>Limitations</h3><ul><li>Please also note that with eas update, you can only update the javascript part of the code. Native layer changes will require the regular app store and playstore release. Also, apple and google only allow eas updates as long as you don’t change the behavior of the app drastically.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*KbQMKJUJnirFTvu6v6cBKw.png" /></figure><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><h3><strong>Please find more react native articles here:</strong></h3><p><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78f23551ca12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Typescript for React Native/React Developers]]></title>
            <link>https://medium.com/@rafayk66/typescript-for-react-native-react-developers-part-1-0b45c9f121e9?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b45c9f121e9</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Wed, 18 Dec 2024 05:19:33 GMT</pubDate>
            <atom:updated>2025-05-01T14:42:04.656Z</atom:updated>
            <content:encoded><![CDATA[<h4>React native shorts | Short | Simple | To the point</h4><h3><strong>Objective</strong></h3><p>To get a react/react native developer to understand the advantages of using typescript</p><h3>Approach</h3><p>Example based. All of the examples provided are available in github project in the ‘src’ folder.</p><h3>1. Type safe variables</h3><ul><li>Lets say you declare a variable and assign it a string value, typescript will automatically infer its type to be string</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*2ro9ftqhkXr9rviP5SlODw.png" /></figure><ul><li>And lets say someone accidentally tries to assign it a number for whatever reason, typescript will immediately identify that</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*it5BarPCxCHxg2Glx4aayQ.png" /></figure><h4>Advantage</h4><ul><li>Will help in identifying the bugs in early stages.</li></ul><h3>2. Type safe functions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*ArXwQzzlLFFvDb636Bqpvg.png" /></figure><ul><li>We can provide type for parameters and return type. This will avoid passing the wrong type as arguments and the function returning the wrong type.</li><li>For example if we pass a string instead of number, it will immediately be identified. Notice the red squiggly line.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*f3mG8wJSGwDO1GUwkegMjw.png" /></figure><h3>3. Type Safety in Components</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*z0JhB9LNdltgy2mFJ_PGDQ.png" /></figure><ul><li>Here we can see we’re using CustomViewProps type to define exactly what our props should be and what type they are. This will help prevent mistakes.</li><li>Additionally, it will help the user of the component what all props they can pass just by hovering over the component.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYcY65oFAKscAEx9Efpcvg.png" /></figure><h3>5. Optional Props</h3><ul><li>You can make a prop optional for a component by adding ‘?’ when defining the prop</li></ul><pre><br>type CustomViewProps = {<br>  text: string;<br>  backgroundColor: string;<br>  fontSize?: number;<br>};</pre><h3>6. Type ‘Any’</h3><ul><li>If you define a pass a prop and don’t give it a type and also typescript cannot infer it, then by default its is of type ‘any’.</li><li>It is not recommended to use any as it can cause issues.</li><li>Example, lets saay if we make fontSize of type any, then some one can do</li></ul><pre>type CustomComponentProps = {<br>  fontSize: any;<br>};<br><br>const CustomComponent = ({fontSize}: CustomComponentProps) =&gt; {<br>  return (<br>    &lt;View&gt;<br>      {/* although the use fontSize below is wrong, typescript does not show any error. */}<br>      &lt;Text style={{fontSize: fontSize.toUpperCase()}}&gt;customComponent&lt;/Text&gt;<br>    &lt;/View&gt;<br>  );<br>};unio</pre><ul><li>Furthermore, if you use any, it defeats the purpose of typing in typescript.</li></ul><h3><strong>7. Union Type</strong></h3><ul><li>Use union type when you want to limit the acceptable arguments to certain values.</li><li>Lets say you have component that accepts fontsize and you want to restrict the values to be only either 10, 20 or 30. You can do something like this</li></ul><pre>import {Text, View} from &#39;react-native&#39;;<br>import React from &#39;react&#39;;<br><br>type UnionTypeExampleProps = {<br>  fontSize: 10 | 20 | 30;<br>  backgroundColor: &#39;red&#39; | &#39;green&#39; | &#39;blue&#39;;<br>};<br><br>const UnionTypeExample = ({<br>  fontSize,<br>  backgroundColor,<br>}: UnionTypeExampleProps) =&gt; {<br>  return (<br>    &lt;View style={{backgroundColor: backgroundColor}}&gt;<br>      &lt;Text style={{fontSize: fontSize}}&gt;Hello World&lt;/Text&gt;<br>    &lt;/View&gt;<br>  );<br>};<br><br>export default UnionTypeExample;</pre><p>And if someone tries to assign it a different value, typescript will immediately show an error</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pSHp3UFZB4Eqz0OSY6WWsQ.png" /></figure><h3>8. Tuple</h3><ul><li>A tuple in simple language can be defined as an array with predefined types and length.</li><li>Lets say, for your custom component, you want to accept a prop that will define all 4 values (top, bottom, left and right).</li></ul><pre>type TupleTypeExampleProps = {<br>  margin: [number, number, number, number];<br>};</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*NbgiCD21zSe2CTf87xdbbQ.png" /></figure><h3>Github Example:</h3><p><a href="https://github.com/AbdurM/typescriptReactNative/tree/main/src/Part1">https://github.com/AbdurM/typescriptReactNative/tree/main/src/Part1</a></p><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><p><strong>Please find more react native articles here:</strong><br><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b45c9f121e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zustand — State management made simple — How to in React/React native]]></title>
            <link>https://medium.com/@rafayk66/zustand-state-management-made-simple-how-to-in-react-react-native-04433710cd63?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/04433710cd63</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[zustand]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[state-management]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Mon, 16 Dec 2024 22:55:45 GMT</pubDate>
            <atom:updated>2025-05-01T14:42:45.049Z</atom:updated>
            <content:encoded><![CDATA[<h3>Zustand — State management made simple — How to in React/React native</h3><h4>React Native How To: Simple | To the Point| Short</h4><h3>Objective</h3><p>To be able to manage global state in react/react native application using Zustand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PxggMhUtg1rPtN1C6zLuSg.jpeg" /></figure><h3>1. Why Zustand is better?</h3><ul><li>Less boiler plate code than others (redux etc).</li><li>Hooks based.</li><li>Simple and easy to understand</li><li>No need wrap the root component with provider.</li></ul><h3>2. Quick setup and use</h3><h4><strong>Step 1: Install Zustand in your project</strong></h4><pre>npm i zustand</pre><h4>Step 2: Create a custom hook aka store</h4><pre>import { create } from &#39;zustand&#39;<br><br>type CountStore = {<br>  count: number,<br>  increaseCount: ()=&gt; void,<br>  decreaseCount: ()=&gt; void,<br>  clearCount: ()=&gt; void<br>}<br><br>export const useCountStore = create&lt;CountStore&gt;((set) =&gt; ({<br>  count: 0,<br>  increaseCount: () =&gt; set((state) =&gt; ({ count: state.count + 1 })),<br>  decreaseCount: () =&gt; set((state) =&gt; ({ count: state.count - 1 })),<br>  clearCount: () =&gt; set({ count: 0 }),<br>}))</pre><ul><li>As you can see, the store is a hook.</li><li>It accepts anything including objects, functions, primitives etc.</li><li>Set function has access to previous value of state and returns a new state.</li></ul><h4>Step 3: Usage</h4><pre>function DisplayCount() {<br>  const count = useCountStore((state) =&gt; state.count);<br>  const increaseCount = useCountStore((state) =&gt; state.increaseCount);<br>  ....<br>}</pre><h3>3. Use cases</h3><h4>Use case 1: Async Operations</h4><ul><li>Just like another async function you can await and call set once ready and the store will be updated.</li></ul><pre>const useCountStore = create((set) =&gt; ({<br>  count: 0,<br>  fetchCountAsync: () =&gt; async () =&gt; {<br>    await new Promise((resolve)=&gt; setTimeout(resolve,1000))<br>    set((state)=&gt; ({ count: state + 5}))<br>  },<br>}</pre><h4>Use case 2: Getting full state (not recommended)</h4><ul><li>Although you can do something like below, it will re-render your component on every state change</li></ul><pre>const state = useCartStore();<br>//or<br>const {tomatoesCount} = useCartStore();</pre><ul><li>Its always best to be specific like</li></ul><pre>const tomatoesCount = useCartStore((state)=&gt; state.tomatoesCount);</pre><h4>Use case 3: Access state Outside of component</h4><pre><br>const count = useCountStore.getState().count;</pre><h4>Use case 4: Modify state Outside of component</h4><pre>const count = useCountStore.setState({count: 9);</pre><ul><li>If a component is also using the state, it will re-render even if the state is modified outside of the component</li></ul><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><p><strong>Please find more react native articles here:</strong><br><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04433710cd63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Animation in react native 01: How to Marquee]]></title>
            <link>https://medium.com/@rafayk66/animation-in-react-native-01-how-to-marquee-363a0ab75b8a?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/363a0ab75b8a</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Sun, 08 Dec 2024 03:54:49 GMT</pubDate>
            <atom:updated>2025-05-01T14:43:42.835Z</atom:updated>
            <content:encoded><![CDATA[<h4>React native shorts | Short | Simple | To the point</h4><p>In this series I will be exploring various react native libraries for animation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*Vc1jo-0UkeYSzIgT6H1v_Q.gif" /></figure><h3>Step 1: Install the following package in your project</h3><pre>npm install @animatereactnative/marquee</pre><h3>Step 2: Add the import in the component file where you want to display the Marquee</h3><pre>import { Marquee } from &#39;@animatereactnative/marquee&#39;;</pre><h3>Step 3: Wrap the component which needs to be displayed</h3><pre> &lt;Marquee style={{ flex: 1, marginTop: 34 }} spacing={20} speed={1}&gt;<br>        &lt;Text&gt;React native is Awesome!&lt;/Text&gt;<br>&lt;/Marquee&gt;</pre><ul><li>Set the spacing and speed as per your need and all done</li></ul><h3>Github Example:</h3><p><a href="https://github.com/AbdurM/marqueeExampleReactNative/tree/main">https://github.com/AbdurM/marqueeExampleReactNative/tree/main</a></p><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><p><strong>Please find more react native articles here:</strong><br><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=363a0ab75b8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native: Android Native Modules- How to (Java Version)]]></title>
            <link>https://medium.com/@rafayk66/react-native-android-native-modules-how-to-java-version-9ca9e9c9dab6?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ca9e9c9dab6</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Mon, 20 May 2024 13:26:54 GMT</pubDate>
            <atom:updated>2025-05-01T14:44:27.314Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Native How To: Simple | To the Point| Short</h3><h3>Objective</h3><p>To be able to use android native libraries not directly available by default in javascript.</p><blockquote><em>Note: Sample project </em>Github<em> link at the end of the article.</em></blockquote><h3>Approach</h3><ul><li>Essentially create a bridge between your Javascript code and android project and then use that bridge to call native code.</li></ul><h3><strong>Step 1: Install external android native library if needed</strong></h3><ol><li>In Android Studio, open your Android project folder and install the native library that you need to use. (Follow the instructions that you get to install in the native android project)</li><li>This step is optional and only use if you want to use something that is not already available by default in android native.</li></ol><h3>Step 2: Create native module</h3><ol><li>In Android Studio, open your Android project folder, in the native module, go to app-&gt;src-&gt;main-&gt; java-&gt;com -&gt;your package name. (Check the image below).</li><li>Create a java file corresponding to library name followed by name module (you can name it anything, this is just standard)</li><li>Example</li></ol><pre>MyExampleModule.java</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*n_uMN6bD9HI-C7yoyg57Qw.png" /></figure><p>4. Within the file you created, create the following class extending ReactContextBaseJavaModule. This is where you will implement the methods that will be ultimately called from your javascript code.</p><p>5. Example code, code explanation will follow</p><pre>package com.nativemodulesexample; // replace nativemodulesexample with your app&#39;s name<br>import com.facebook.react.bridge.NativeModule;<br>import com.facebook.react.bridge.ReactApplicationContext;<br>import com.facebook.react.bridge.ReactContext;<br>import com.facebook.react.bridge.ReactContextBaseJavaModule;<br>import com.facebook.react.bridge.ReactMethod;<br>import java.util.Map;<br>import java.util.HashMap;<br>import android.util.Log;<br><br>public class MyExampleModule extends ReactContextBaseJavaModule {<br>    MyExampleModule(ReactApplicationContext context) {<br>        super(context);<br>    }<br><br>    @Override<br>    public String getName() {<br>        return &quot;MyExampleModule&quot;;<br>    }<br><br>    @ReactMethod<br>    public void exampleMethod() {<br>        //This is where you call the native method or <br>        // code for your native android library<br>        Log.d(&quot;MyExampleModule&quot;, &quot;ExampleMethod called&quot;);<br>    }<br>}</pre><ul><li>Override the getName method. This is mandatory for all native modules. Simply return the module name.</li><li>exampleMethod: This is the method where you call the actual native code. Please make sure that you anotate it with @ReactMethod</li><li>You can have as many methods as needed.</li></ul><h3>Step 3: Register the module</h3><ul><li>Create package file in the same place. Name it for example MyExamplePackage.</li><li>This is created to register the native android module with react native.</li></ul><pre>package com.nativemodulesexample; // replace nativemodulesexample with your app’s name<br>import com.facebook.react.ReactPackage;<br>import com.facebook.react.bridge.NativeModule;<br>import com.facebook.react.bridge.ReactApplicationContext;<br>import com.facebook.react.uimanager.ViewManager;<br><br>import java.util.ArrayList;<br>import java.util.Collections;<br>import java.util.List;<br><br>public class MyExamplePackage implements ReactPackage {<br><br>   @Override<br>   public List&lt;ViewManager&gt; createViewManagers(ReactApplicationContext reactContext) {<br>       return Collections.emptyList();<br>   }<br><br>   @Override<br>   public List&lt;NativeModule&gt; createNativeModules(<br>           ReactApplicationContext reactContext) {<br>       List&lt;NativeModule&gt; modules = new ArrayList&lt;&gt;();<br><br>       modules.add(new MyExampleModule(reactContext));<br><br>       return modules;<br>   }<br><br>}</pre><h3>Step 4: Register the package</h3><ul><li>In the <strong>MainApplication.java</strong> file, within the getPackages method, add the packages.add file as shown below.</li></ul><pre>@Override<br>protected List&lt;ReactPackage&gt; getPackages() {<br>  @SuppressWarnings(&quot;UnnecessaryLocalVariable&quot;)<br>  List&lt;ReactPackage&gt; packages = new PackageList(this).getPackages();<br> <br>  packages.add(new MyExamplePackage());// add this line here<br>  return packages;<br>}</pre><h3>Step 5: Finally, call the code from Javascript code</h3><ol><li>In your VS code(Or editor of your choice), open your project and in the file where you wish to call the native android code.</li><li>Import the following</li></ol><pre>import {NativeModules} from &#39;react-native&#39;<br>const {MyExampleModule} = NativeModules;</pre><p>3. Call the native method in your native module like this</p><pre>MyExampleModule.exampleMethod();</pre><p>4. Run your code and for this particular example, check logcat in Android studio.</p><pre>npm run android</pre><h4><em>Example App Github link below:</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*xGEgaUORM9d0fUwjLn5YCw.png" /></figure><ul><li>Upon pressing button, you can check the logs. These are coming from the native code written in MyExampleModule.java that we wrote previously.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XHIDh49pdoLCX74D-YQm0g.png" /></figure><h3>Github Link:</h3><p><a href="https://github.com/AbdurM/rnNativeModulesExample">https://github.com/AbdurM/rnNativeModulesExample</a></p><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><p><strong>Please find more react native articles here:</strong><br><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ca9e9c9dab6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi-brand/White Label/Unicode App in React Native — How to]]></title>
            <link>https://medium.com/@rafayk66/multi-brand-white-label-unicode-app-in-react-native-how-to-fe85cec36bde?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe85cec36bde</guid>
            <category><![CDATA[white-label]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[unicode]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Mon, 06 May 2024 11:39:24 GMT</pubDate>
            <atom:updated>2025-11-17T14:26:09.066Z</atom:updated>
            <content:encoded><![CDATA[<h3>Multi-brand/White Label/Unicode App in React Native — How to</h3><h3>React Native How To: Simple | To the Point| Short</h3><h3>Objective</h3><p>To have a single code base for multiple applications.</p><blockquote>Note: Sample project Github link at the end of the article.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sbv7b4wjxEVx6Kq_Ns7cRw.png" /></figure><h3>Step 1:</h3><ul><li>Create a new react native app and run the following command from the root to add the following package</li></ul><pre>npm i babel-plugin-module-resolver</pre><h3>Step 2:</h3><ul><li>In the root directory create directory called src then create a brands folder within</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*ZYlFTiDbChwbu0ehE9rXYA.png" /></figure><h3>Step 3:</h3><ul><li>In the babel.config.js file, paste the following. Explanation for code follows</li></ul><pre>const brandSpecificPath = `./src/brands/${process.env.APP_BRAND}`;<br><br>module.exports = {<br>  presets: [&#39;module:@react-native/babel-preset&#39;],<br>  plugins: [<br>    [&#39;module-resolver&#39;, {<br>      root: [&#39;./src&#39;, brandSpecificPath, &#39;./src/brands/default&#39;]<br>    }]<br>  ]<br>};</pre><ul><li>First line sets the brandSpecificPath to the brand folder we’ve just created.</li><li>This solution uses ‘babel-plugin-module-resolver’ which essentially is a module resolver. For root key on line 7, we provide 3 values to find the code when resolving the values.</li></ul><ol><li>root path: This is where it will look for code first</li><li>brand specific path: This is where it will next look. This is the place where most of our brand specific code will exist</li><li>default path: This is our fallback path</li></ol><ul><li>That’s it our multibrand app is ready to use</li></ul><h3>Example usage (github link will be provided at the end)</h3><ol><li>Within brands folder, created 3 specific brands folder and default folder(fallback) and added colors.js file in each. Make sure the name is same.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*imyIAmQAoKkfsFf0V5_Dfw.png" /></figure><p>2. Code in default/colors.js file</p><pre>export const colors = {<br>    backgroundColor: &#39;grey&#39;<br>}</pre><p>3. Code in orange_co/colors.js file</p><pre>export const colors = {<br>    backgroundColor: &#39;orange&#39;<br>}</pre><p>4. Similar code in other two folders specifying color corresponding to file name.</p><p>5. Now in the common code, in my case app.js, use the code as follows. Please note that it just does <em>import colors from ‘colors’ </em>and does not specify the path. This is the job of module resolver.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*XIOaesBUfgc5NfZbM0JKDw.png" /></figure><pre>import { StyleSheet, View } from &#39;react-native&#39;<br>import React from &#39;react&#39;<br>import colors from &#39;colors&#39;<br><br>const App = () =&gt; {<br>  return (<br>    &lt;View style={styles.container}/&gt;<br>  )<br>}<br><br>export default App<br><br>const styles = StyleSheet.create({<br>  container: {<br>    backgroundColor: colors.backgroundColor,<br>    flex: 1,<br>  }<br>})</pre><p>6. Lets first launch the orange_co app. Use the following command</p><pre>APP_BRAND=&#39;orange_co&#39; npx react-native start </pre><ul><li>Press i for ios and a for android</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*uwcv1oZrxFmnLh3CVA6t8g.png" /></figure><ul><li>Then for purple_co, use the following command</li></ul><pre>APP_BRAND=&#39;purple_co&#39; npx react-native start --reset-cache</pre><ul><li>As you can notice, we are just changing the brand name and resetting the metro cache (This is not necessary).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*2fm0-x-y80DQrQ90MgbNgg.png" /></figure><h3>Github Link:</h3><p><a href="https://github.com/AbdurM/whiteLabelApp">https://github.com/AbdurM/whiteLabelApp</a></p><h3>Credits:</h3><p><a href="https://medium.com/@jaroslaw.marek?source=post_page-----490363ec59--------------------------------">Jaroslaw Marek</a></p><p><a href="https://levelup.gitconnected.com/white-label-mobile-app-with-react-native-and-babel-490363ec59">https://levelup.gitconnected.com/white-label-mobile-app-with-react-native-and-babel-490363ec59</a></p><h3>That’s all for this one. Hope it helped</h3><p><strong>Please find more react native articles here:</strong><br><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><p><a href="https://levelup.gitconnected.com/white-label-mobile-app-with-react-native-and-babel-490363ec59">https://levelup.gitconnected.com/white-label-mobile-app-with-react-native-and-babel-490363ec59</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe85cec36bde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native: PDF- Easy How to]]></title>
            <link>https://medium.com/@rafayk66/react-native-pdf-easy-how-to-12a8bf4d7bcc?source=rss-4f91e038d1be------2</link>
            <guid isPermaLink="false">https://medium.com/p/12a8bf4d7bcc</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Abdur Mohammed]]></dc:creator>
            <pubDate>Wed, 01 May 2024 15:15:31 GMT</pubDate>
            <atom:updated>2025-05-01T14:48:04.161Z</atom:updated>
            <content:encoded><![CDATA[<h4>React Native How To: Simple | To the Point| Short</h4><h3>Objective</h3><p>Easily implement pdf viewing functionality in a react native application</p><p><em>Note: Github link at the end of the article.</em></p><h3>Step 1: Add the required packages</h3><ul><li>Open terminal and navigate to the root of your project and run the following commands</li></ul><pre>npm install react-native-pdf react-native-blob-util --save</pre><h3>Step 2: iOS</h3><ul><li>Go into iOS folder and run pod install</li></ul><pre>pod install</pre><h3><strong>Step 3: Android</strong></h3><ul><li>Go to android/app/build.gradle and add the following under android tag</li></ul><pre>android {<br><br>//paste the following<br><br>  packagingOptions {<br>       pickFirst &#39;lib/x86/libc++_shared.so&#39;<br>       pickFirst &#39;lib/x86_64/libjsc.so&#39;<br>       pickFirst &#39;lib/arm64-v8a/libjsc.so&#39;<br>       pickFirst &#39;lib/arm64-v8a/libc++_shared.so&#39;<br>       pickFirst &#39;lib/x86_64/libc++_shared.so&#39;<br>       pickFirst &#39;lib/armeabi-v7a/libc++_shared.so&#39;<br>     }<br>}</pre><h3>Step 4: Sample implementation</h3><ul><li>Import the package</li></ul><pre>import Pdf from &#39;react-native-pdf&#39;;</pre><ul><li>Create source for the pdf. This includes the uri where you want to get the pdf from and adding an option to cache</li></ul><pre>const exampleSource = { uri: &#39;https://www.sharedfilespro.com/shared-files/38/?sample.pdf&#39;, cache: true }</pre><ul><li>Pdf component sample implementation</li></ul><pre>&lt;View style={ {flex: 1}}&gt;<br>  &lt;Pdf<br>    source={exampleSource}<br>    style={ {flex: 1}}/&gt;<br>&lt;/View&gt;</pre><ul><li>Done</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*kmeYx-L4rLpsbXp5BD_yHg.png" /></figure><h3>Github Link:</h3><p><a href="https://github.com/AbdurM/rn-pdf-example">https://github.com/AbdurM/reactNativeDrawerNavigation</a></p><h3>That’s all for this one. Hope it helped</h3><figure><a href="https://buymeacoffee.com/abdurdeveloper"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og6wm6U2Le0umLNHNll1tA.png" /></a></figure><p><strong>Please find more react native articles here:</strong><br><a href="https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf">https://medium.com/@rafayk66/abdurs-react-react-native-articles-4a2231b26daf</a></p><p><strong>Please find more flutter articles here</strong>: <a href="https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8">https://medium.com/@rafayk66/abdurs-flutter-articles-c201eff334b8</a></p><p><strong>You can find me on</strong><br><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/knowabdur">https://www.linkedin.com/in/knowabdur</a></p><p>#reactNative #reactNativeDeveloper #react #javascript #typescript</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=flutter&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutter</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=flutterdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#flutterdeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=abdurdeveloper&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#AbdurDeveloper</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=fluttercommunity&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7008556512419749888">#fluttercommunity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12a8bf4d7bcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>