<?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 trinadhkoya on Medium]]></title>
        <description><![CDATA[Stories by trinadhkoya on Medium]]></description>
        <link>https://medium.com/@trinadhkoya?source=rss-c3bb80c9da0c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*nUiYyFvtfPLdTMB2ThrudQ.jpeg</url>
            <title>Stories by trinadhkoya on Medium</title>
            <link>https://medium.com/@trinadhkoya?source=rss-c3bb80c9da0c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:20:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@trinadhkoya/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[Handling Static Images]]></title>
            <link>https://medium.com/@trinadhkoya/handling-static-images-ac9bf7ea1b19?source=rss-c3bb80c9da0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac9bf7ea1b19</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[trinadhkoya]]></dc:creator>
            <pubDate>Wed, 11 Sep 2019 05:37:57 GMT</pubDate>
            <atom:updated>2019-09-11T05:41:55.681Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*fVg5RYvA4WkzHbFJwAem7w.png" /></figure><p>Always keep your images(<strong>.jpg</strong> or <strong>.png </strong>) in one folder and give their path(resource path) to identify with the name and access them where ever you want. ‘Ve seen most of the people doing the below approach. This is wrong way of doing.</p><pre>&lt;Image source={require(‘../assets/images/someX.png’)}<br>       resizeMethod=&quot;contain&quot;<br>       style={{height:200}} /&gt;</pre><p>Instead, keep all of your images In one .<strong>js</strong> file like below. For my case, I created an <strong>Images.js</strong> file</p><pre><br>export default {<br>    emptyCart: require(&#39;../_images/EmptyCart.png&#39;),<br>    emptySchedule: require(&#39;../_images/EmptySchedule.png&#39;),<br>    emptyMenu: require(&#39;../_images/EmptyCart.png&#39;),<br>};</pre><p>How do we access them shown below,</p><pre>import Images from &#39;../_theme/Images&#39;;</pre><pre>&lt;Image source={<strong>Images</strong>.emptyCart}<br>       resizeMethod=&quot;contain&quot;<br>       style={{height:200}} /&gt;</pre><p>Have you gone through Tips &amp; Tricks #1? chek out <a href="https://medium.com/@trinadhkoya/lazy-react-native-programmer-tips-tricks-de559d47effa">this</a> link</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac9bf7ea1b19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lazy React Native Programmer Tips & Tricks]]></title>
            <link>https://medium.com/@trinadhkoya/lazy-react-native-programmer-tips-tricks-de559d47effa?source=rss-c3bb80c9da0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/de559d47effa</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[trinadhkoya]]></dc:creator>
            <pubDate>Tue, 10 Sep 2019 09:26:57 GMT</pubDate>
            <atom:updated>2019-09-10T15:12:12.162Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*_i6XTsbWgdSPq9QKHQYknA.png" /></figure><p>Hello, I am more of a programmer than a content writer. In this tutorial, ‘am gonna put some simple and easy tricks I have learned so far. Let’s get this started.</p><p><strong>Increment Build Number/Version Code Automatically</strong></p><p>This is purely based on the number of git commits. I liked it.</p><h4>ios:</h4><p>Go to your project Target, on the right side you will see Build Phases. Tap on Build phases Tab. Tap on + icon to add your script to increment build number automatically. It’s good to have the name of the script, I titled it as <strong>Increment Build.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ba5a14e1bbf4fe56aee7a7f167a6b61/href">https://medium.com/media/9ba5a14e1bbf4fe56aee7a7f167a6b61/href</a></iframe><p><strong>Android</strong>:</p><p>The following snippet should be placed in <strong>build.Gradle(project) </strong>level. It will check the commit number of your master branch and change</p><pre>ext {<br>    buildToolsVersion = &quot;28.0.3&quot;<br>    minSdkVersion = 19<br>    compileSdkVersion = 28<br>    targetSdkVersion = 28<br>    supportLibVersion = &quot;28.0.0&quot;<br>    googlePlayServicesVersion = &quot;16.0.0&quot;<br>    <strong>getVersionCode = { -&gt;<br>            try {<br>                def stdout = new ByteArrayOutputStream()<br>                exec {<br>                commandLine &#39;git&#39;, &#39;rev-list&#39;, &#39;--count&#39;, &#39;master&#39;<br>                    standardOutput = stdout<br>                }<br>                return Integer.parseInt(stdout.toString().trim())<br>            }<br>            catch (ignored) {<br>                return -1;<br>            }<br>        }</strong></pre><pre>}</pre><p>just call this <strong>getVersionCode </strong>in your app level build.gradle file to get the dynamic version code.</p><pre>defaultConfig {<br>    applicationId &quot;com.vicinia.tinmen&quot;<br>    minSdkVersion rootProject.ext.minSdkVersion<br>    targetSdkVersion rootProject.ext.targetSdkVersion<br>    versionCode <strong>rootProject.ext.getVersionCode()</strong><br>    versionName &quot;4.0&quot;<br>    multiDexEnabled true</pre><pre>}</pre><p>It’s never too late to ask me for some advice or help.</p><p>#<strong>ThereIsOneMoreThing #ComingSoon</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de559d47effa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>