<?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 Fahid M on Medium]]></title>
        <description><![CDATA[Stories by Fahid M on Medium]]></description>
        <link>https://medium.com/@fahidm?source=rss-cb185c3c045f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*J6aiotLDp9eklJGAw86piw.jpeg</url>
            <title>Stories by Fahid M on Medium</title>
            <link>https://medium.com/@fahidm?source=rss-cb185c3c045f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 22:51:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fahidm/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 can I improve my life 10x?]]></title>
            <link>https://medium.com/@fahidm/how-can-i-improve-my-life-10x-2a724f49df7?source=rss-cb185c3c045f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a724f49df7</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[10x-rule]]></category>
            <dc:creator><![CDATA[Fahid M]]></dc:creator>
            <pubDate>Wed, 29 Jun 2022 19:16:13 GMT</pubDate>
            <atom:updated>2022-06-29T19:16:13.224Z</atom:updated>
            <content:encoded><![CDATA[<p>After reading the the 10x book by Grant Candour.<br>We can 10x any metrics in our life. Be it financial, relationships, family, sales, innovation, health. It all comes down to understanding how success works.</p><p>For a footballer, it’s about scoring those goals. For a businessman it may be financially successful with 10million or 100 million, (success or goals depends on you)</p><p>simple pointers to 10x</p><p><strong>#1</strong> For 10x success =&gt; 10x actions + 10x thinking<br><strong>#2</strong> Set your 10x goals, <br>example if you are currently making 35$/hr see how you can make 350$ per hour.<br><strong>#3 </strong>10x mindset takes full ownership and does not blame the circumstances/situations<br><strong>#4 </strong>Without action, great mindset cannot have 10x success<br><strong>#5</strong> Folding arms and waiting will not bring success, You have to go all in for it<br><strong>#6 </strong>10x mindset does not blame people or circumstances, they take full responsibility for all that happens<br><strong>#7 </strong>Playing victim = losers card<br><strong>#8</strong> Life rewards who takes actions<br><strong>#9 </strong>4 types of actions -&gt; no action, normal action, retreat , massive actions<br><strong>#10</strong> Nature = growth<br><strong>#11 </strong>10x person will think and do 10x more than average person<br><strong>#12 </strong>Peters Plateau = not growing skills will make you incompetent<br><strong>#13 </strong>Growth = Nature</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a724f49df7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write a native module to enable full-screen mode in React Native (Android)]]></title>
            <link>https://levelup.gitconnected.com/write-your-own-react-native-module-to-enable-full-screen-mode-android-cfe246329740?source=rss-cb185c3c045f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfe246329740</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[fullscreen]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Fahid M]]></dc:creator>
            <pubDate>Wed, 04 Sep 2019 09:53:15 GMT</pubDate>
            <atom:updated>2019-09-04T14:34:48.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*stjXvPREQFHtX_oXcML4iA.png" /><figcaption>image courtesy: android docs</figcaption></figure><p>There are instances where a screen needs to be in full-screen mode to utilize the maximum usage of screen space or to avoid users exiting the app accidentally. However, React Native does not come with a built-in solution to enter or exit full-screen mode, hide the system navigation bars, or hide the system status bar.</p><p>I have seen some developers using some modules like <a href="https://github.com/mockingbot/react-native-immersive">react-native-immersive</a> to enable full-screen immersive modes, but I thought this would be a great opportunity to write my first native module and bridge it to React Native.</p><p>I recommend going through the “Toast Example” provided in React Native docs to understand how bridging the platform API to JS works.</p><p>Now let’s start with the <a href="https://developer.android.com/training/system-ui/immersive#EnableFullscreen">android’s docs on how to enable full screen mode.</a> After a quick read, I realize it uses <strong>setSystemUiVisibility() </strong>from View class along with<strong> </strong>system UI flags such as SYSTEM_UI_FLAG_LAYOUT_STABLE,SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION,<br>SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION<br>SYSTEM_UI_FLAG_FULLSCREEN, etc.</p><p>Let&#39;s create a new file FullScreenModule.java inside android/app/src/main/java/com/your-app-name/ and use the function <strong>setSystemUiVisibility() </strong>as mentioned in the android docs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d5a2e086f261329f89c29e390117b4e/href">https://medium.com/media/5d5a2e086f261329f89c29e390117b4e/href</a></iframe><p>The next step is to register the module using createNativeModules(). Create a file FullScreenPackage.java inside android/app/src/main/java/com/your-app-name/ with these contents:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b7bc652200f541718a6080d0a5490bd/href">https://medium.com/media/6b7bc652200f541718a6080d0a5490bd/href</a></iframe><p>Now link the FullScreenPackage to getPackages() inside <strong>MainApplication.java</strong>:</p><pre>// MainApplication.java<br>............</pre><pre>import com.appname.FullScreenPackage; // add package Name</pre><pre>............<br>protected List&lt;ReactPackage&gt; getPackages() {<br>  @SuppressWarnings(&quot;UnnecessaryLocalVariable&quot;)<br>  List&lt;ReactPackage&gt; packages = new PackageList(this).getPackages();</pre><pre>  // ... add the next line<br>  packages.add(new FullScreenPackage());<br>  return packages;<br>}</pre><p>The final step is to wrap the native module in JavaScript. Create a new file called <strong>FullScreen.js</strong></p><pre>// FullScreen.js</pre><pre>import {NativeModules} from &#39;react-native&#39;;<br>module.exports = NativeModules.FullScreen;</pre><p>Now you can enable or disable FullScreen:</p><pre>import FullScreen from &quot;../utils/FullScreen&quot;;</pre><pre>FullScreen.enable();<br>FullScreen.disable();</pre><p>Checkout the<a href="https://github.com/neonsec/react-native-full-screen-demo"> repo here</a> for a working demo.</p><p><a href="https://gitconnected.com/learn/react-native">Learn React Native - Best React Native Tutorials (2019) | gitconnected</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfe246329740" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/write-your-own-react-native-module-to-enable-full-screen-mode-android-cfe246329740">Write a native module to enable full-screen mode in React Native (Android)</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Staging environment setup for React Native in 0.60.x (Android)]]></title>
            <link>https://levelup.gitconnected.com/staging-environment-setup-for-react-native-in-0-60-x-android-8748d7f36e6b?source=rss-cb185c3c045f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8748d7f36e6b</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[react-native-development]]></category>
            <dc:creator><![CDATA[Fahid M]]></dc:creator>
            <pubDate>Sat, 31 Aug 2019 10:59:31 GMT</pubDate>
            <atom:updated>2019-09-03T18:28:16.986Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nQRahB0QaSiacgktKto9MA.png" /></figure><p>After the initial release of our android app, we wanted a staging environment that uses different app config and secrets. Manually changing and replacing the files are time consuming and an annoying process. So in this post, I will cover how we setup our staging version for our android app.</p><p><strong>STEP 1: </strong>Adding staging build variant in <strong>android/app/build.gradle</strong></p><pre>buildTypes{      <br>   //... add below lines inside buildTypes<br>    <strong>releasestaging</strong> {<br>            initWith release    <br>            applicationIdSuffix &quot;.<strong>releasestaging</strong>&quot; <br>            matchingFallbacks =  [&#39;release&#39;]<br>        }<br>  // ...<br>}</pre><p>let’s have a quick look on whats going inside this snippet. The<strong>initWith</strong>property allows you to copy configurations from other build types. <strong>applicationIdSuffix</strong> property allows to add a suffix to default applicationId this is required to differentiate the package name generated from release and staging variants. <strong>matchingFallbacks</strong> is used to specify alternative matches for a given build type. matchingFallbacks is required only if you have any native packages such as react-native-firebase, react-native-device-info etc.</p><p><strong>note:</strong> while naming the build variant make sure it starts with <strong>release </strong>or you have to edit <a href="https://github.com/facebook/react-native/blob/0.60-stable/react.gradle">node_modules/react-native/react.gradle</a> . You can refer <a href="https://github.com/facebook/react-native/issues/25601#issuecomment-510856047">this link </a>on how to support a name without the release prefix.</p><p><strong>STEP 2: </strong>configure <strong>hermes path </strong>in <strong>android/app/build.gradle</strong></p><pre>if (enableHermes) {<br>  def hermesPath = &quot;../../node_modules/hermesvm/android/&quot;;<br>  debugImplementation files(hermesPath +&quot;hermes-debug.aar&quot;)<br>  releaseImplementation files(hermesPath +&quot;hermes-release.aar&quot;)<br><strong>// </strong>add this line to configure hermes for staging<br><strong>releasestagingImplementation files(hermesPath +&quot;hermes-release.aar&quot;)</strong></pre><pre>} else {<br>      implementation jscFlavor<br> }</pre><p><strong>STEP 3: (optional) if you are using react-native-firebase</strong></p><p>To have different google-firebase.json files for each build type, we have to organise the project structure like this:</p><pre>android/<br>    app/<br>       google-services.json<br>       src/debug/google-services.json<br>       src/releasestaging/google-services.json<br>       src/development/google-services.json</pre><p>also change the package name in android/app/src/releasestaging/google-services.json to com.yourappname.releasestaging (same as the build type’s applicationSuffixId given in /android/app/build.gradle)</p><p><strong>STEP 4: Changing the app name and icon to differentiate build types</strong></p><p>Now let’s change name and icon to YourApp Staging <br>To change the <strong>app icon</strong> , we must put <strong>ic_launcher.png</strong> inside staging folder like this</p><pre><strong>android/app/src/releasestaging</strong><br>├── google-services.json<br>└── res<br>    ├── mipmap-hdpi<br>    │   ├── ic_launcher.png<br>    │   └── ic_launcher_round.png<br>    ├── mipmap-mdpi<br>    │   ├── ic_launcher.png<br>    │   └── ic_launcher_round.png<br>    ├── mipmap-xhdpi<br>    │   ├── ic_launcher.png<br>    │   └── ic_launcher_round.png<br>    ├── mipmap-xxhdpi<br>    │   ├── ic_launcher.png<br>    │   └── ic_launcher_round.png<br>    ├── mipmap-xxxhdpi<br>    │   ├── ic_launcher.png<br>    │   └── ic_launcher_round.png<br>    └── values<br>        └── strings.xml</pre><p>Change the <strong>app name</strong> in the <strong>releasestaging/res/values/strings.xml</strong></p><p>now you can generate staging build with <strong>react-native run-android --variant=releasestaging</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8748d7f36e6b" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/staging-environment-setup-for-react-native-in-0-60-x-android-8748d7f36e6b">Staging environment setup for React Native in 0.60.x (Android)</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>