<?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[Developing a native mobile app with React-Native and Typescript - Medium]]></title>
        <description><![CDATA[Developing a React-Native + Typescript App - Medium]]></description>
        <link>https://medium.com/react-native-typescript?source=rss----d03db1b6f48---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Developing a native mobile app with React-Native and Typescript - Medium</title>
            <link>https://medium.com/react-native-typescript?source=rss----d03db1b6f48---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:56:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/react-native-typescript" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Adding footer component to the app]]></title>
            <link>https://medium.com/react-native-typescript/adding-footer-component-to-the-app-71058f83c1fa?source=rss----d03db1b6f48---4</link>
            <guid isPermaLink="false">https://medium.com/p/71058f83c1fa</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Nitesh Chaudhary]]></dc:creator>
            <pubDate>Sat, 13 May 2017 23:00:53 GMT</pubDate>
            <atom:updated>2017-05-13T23:00:53.219Z</atom:updated>
            <content:encoded><![CDATA[<p>Footer section will be static to the whole app</p><p>We want to add About Us, Contact Us and Site Map links in the footer</p><p>Below are the steps:</p><ol><li>Create a footer component using typescript, which contains a exportable Footer method and it returns the link and footer text</li></ol><p>2. To add a link, use TouchableOpacity and Linking modules from react-native library</p><p>3. Link address with be fetched from app.js , so we define a variable linkAddress as a placeholderDefine the styles for text location in the footer section in this component</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e72197b50872a9da691ef2ea3980832/href">https://medium.com/media/4e72197b50872a9da691ef2ea3980832/href</a></iframe><p>4. Now, in index.js mark the footer as export using export * from &#39;./footer&#39;;</p><p>5. Import Footer method to app.js</p><p>6. We need to define the style appFooter for the footer section and this is done inside the StyleSheet.create()</p><p>7. We can now use the appFooter property in the App class. Also, we can define here the links we need</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0af083313ad4a1fc86af0105ddb26a94/href">https://medium.com/media/0af083313ad4a1fc86af0105ddb26a94/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71058f83c1fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-typescript/adding-footer-component-to-the-app-71058f83c1fa">Adding footer component to the app</a> was originally published in <a href="https://medium.com/react-native-typescript">Developing a native mobile app with React-Native and Typescript</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Task 5 - Opening our react-native app in Android emulator]]></title>
            <link>https://medium.com/react-native-typescript/task-5-opening-our-react-native-app-in-android-emulator-71764f09201f?source=rss----d03db1b6f48---4</link>
            <guid isPermaLink="false">https://medium.com/p/71764f09201f</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript-frameworks]]></category>
            <dc:creator><![CDATA[Bharat Tiwari]]></dc:creator>
            <pubDate>Sat, 13 May 2017 21:40:29 GMT</pubDate>
            <atom:updated>2017-05-13T21:40:28.629Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous task we have set up Android studio and its virtual device emulator.</p><p>Now, lets open the react-native <em>‘momentz4ever’ </em>app that we initialized/scaffolded in Task # 3 in the Android emulator.</p><p>If you don’t have it open, open the command prompt with Administrator privileges and change the current working folder to the react-native project folder <em>‘momentz4ever’</em> .</p><pre>C:\WINODWS\system32&gt; cd C:\working\reactnative\momentz4ever</pre><p>Run the react-native cli’s command run-android to for react-native to compile, build and open the app on the connected Android emulator.</p><pre>C:\working\reactnative\momentz4ever&gt;<strong>react-native run-android</strong></pre><p>With the above command, React-native will start building the android project/app. It will also open up another command window where the packaging of the app will be triggered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*d-oKwiPTqSDrUph61_OYKg.png" /></figure><p>(If you get an error during the build like below, close the project in Android Studio and delete the <em>debug</em> folder from the path shown in the error: - <em>C:\working\reactnative\momentz4ever\android\app\build\generated\source\r</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*TxcPJKIdgz6NWg9KG2xz8Q.png" /></figure><p>Run<strong> </strong>react-native run-android command again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8D3YBxiyPwjwnMwI3gKYrw.png" /></figure><p>If everything goes fine, you should see app installed and opened up on the emulator with the Welcome screen that was scaffolded for us by the react-native init command when we created the project.</p><p>Cool, now in the text task, we will setup and configure our project to use Typescript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQy2pOEES_43Boi9tvE6eg.png" /></figure><figure><a href="https://medium.com/react-native-typescript/task-4-opening-the-react-native-app-in-android-emulator-f3565f9f31a4"><img alt="" src="https://cdn-images-1.medium.com/max/250/1*-ch1xBIjOLhFJrmtNsrUVQ.png" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*4yJfM3F_CweCqzpm2L4ZDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*0lpKU4YaL9ENlZCX3Djh7A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71764f09201f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-typescript/task-5-opening-our-react-native-app-in-android-emulator-71764f09201f">Task 5 - Opening our react-native app in Android emulator</a> was originally published in <a href="https://medium.com/react-native-typescript">Developing a native mobile app with React-Native and Typescript</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Task 4- Setting up android virtual device/emulator]]></title>
            <link>https://medium.com/react-native-typescript/task-4-opening-the-react-native-app-in-android-emulator-f3565f9f31a4?source=rss----d03db1b6f48---4</link>
            <guid isPermaLink="false">https://medium.com/p/f3565f9f31a4</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Bharat Tiwari]]></dc:creator>
            <pubDate>Fri, 12 May 2017 07:09:17 GMT</pubDate>
            <atom:updated>2017-05-12T13:43:08.485Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous task, we initialized/scaffolded a react-native project named ‘momentz4ever’ using react-native-cli’s init command.</p><p>We also saw how the android folder created inside our project folder <em>‘momentz4ever’</em> is a native android project.</p><p>In this task, lets first try opening this android project from Android Studio ( that we installed in<a href="https://medium.com/react-native-typescript/task-2-installing-android-studio-bb28872f2839"> Task 2 </a>).</p><p>From Windows Search, search and open Android Studio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*5oxGjWIPG-NV2hZHsiXUgA.png" /></figure><p>On the Android Studio Welcome screen, select the option - <em>Open an existing Android Studio project</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*WOpfZWs25Fj2WYpqU30s7Q.png" /></figure><p>You will be prompted for selecting the Android project folder. Select the ‘Android’ folder inside our react-native ‘momentz4ever’ project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*9AVclSbNJPrLFvGjvAZ2MA.png" /></figure><p>Android Studio will start building Gradle for the project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*hGZQaEGgJAnlL5WWHA8GmA.png" /></figure><p>Building Gradle may take few minutes. Android Studio may throw some errors during the Gradle Build for some missing platform, tools or components. It will suggest a link to install the missing part in the ‘messages’ pane as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*5aB254FqHNTRMMjJRj-bNg.png" /></figure><p>Click on the suggested link, the missing platform’s installation will begin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8izZbn7D1OL7S3RbGvoU7g.png" /></figure><p>Once the missing platform’s installation is finished, the Gradle build process will resume. You may get couple of more errors depending on your version of Android studio installed, keep clicking on the suggested links in the ‘messages’ pane and installing the missing platform/tools, until the Gradle is build successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*igdqsI3VK7Xvbs-aLU7Slw.png" /></figure><p>For me, it also prompted me to upgrade the Gradle plug-in during the process, which I did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*4J1zI7KJsZlsrkSfDI7ofA.png" /></figure><p>Finally, if everything goes well, you should see a Gradle build finished message as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*he6hfvY99pLl0dk1YuVd0g.png" /></figure><p>Now that we have Gradle built successfully, lets open an Android device emulator from the <em>Android studio - Tools - AVD Manager</em> menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*Wsjf-P_hePrmIHVLQ4L6ig.png" /></figure><p>Android Virtual Device manager window will open up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*aDz4-1ougWtyaCEeEbJQJA.png" /></figure><p>Click on the button — ‘Create Virtual Device’.</p><p>This will bring up ‘Choose a device’ screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*Ft1_VbXG93wXPxXeMiE3Dw.png" /></figure><p>Select a device of your choice. I selected ‘Nexus 5X’ above. Click ‘Next’.</p><p>Next will be ‘Select Image’ screen. React-Native is currently supporting API version 23 — Marshmallow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*8r1yMMjx4vKMDkh4kxcyVQ.png" /></figure><p>Click on the ‘Download’ link next to Marshmallow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*lpA7ukYhWdqis8GF7tUOAQ.png" /></figure><p>Click ‘Finish’ once download is complete and you will be back on ‘Select Image’ screen. Here, click on ‘Install Haxm’ link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*BuNqfDeLmhk7eM-oUBXqww.png" /></figure><p>Select the recommended RAM size and click ‘Next’. The HAXM installation will begin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*kLv0d91dUuvXeJaTrCitcw.png" /></figure><p>Click ‘Finish’ button once HAXM installation is complete. Back on ‘Select Image’ screen, click ‘Next’ button to move to Verify configuration screen.</p><p>(For some reason, it keeps showing HAXM is not installed even when we have it installed)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*1efKZGnQKF51WjA6QP5Y0g.png" /></figure><p>Here provide a name for the Virtual Device/emulator. Click ‘Finish’.</p><p>Once the virtual device is ready, it will show up in the <strong>AVD manager</strong> screen now:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*0scjNsVFr8jNJd2ROSm33A.png" /></figure><p>Click on the green play button in the ‘Actions’ column of the added device row.</p><p>This should launch the virtual device. Allow it to boot up fully, may take few minutes for the first time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*jk5ZiBjZ70cfZLQpGw_sKw.png" /></figure><p>We have successfully setup our emulator and Android Studio.</p><p>In the next task, we will build and launch our ‘momentz4ever’ react-native app on the emulator using the cli command:</p><pre>react-native run-android</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*tD_oqjmviEM8E82NaZUdFg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3565f9f31a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-typescript/task-4-opening-the-react-native-app-in-android-emulator-f3565f9f31a4">Task 4- Setting up android virtual device/emulator</a> was originally published in <a href="https://medium.com/react-native-typescript">Developing a native mobile app with React-Native and Typescript</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Task 3- Installing React-Native CLI and creating our React-Native project]]></title>
            <link>https://medium.com/react-native-typescript/task-3-installing-react-native-cli-and-creating-our-react-native-project-f1ca8c375938?source=rss----d03db1b6f48---4</link>
            <guid isPermaLink="false">https://medium.com/p/f1ca8c375938</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Bharat Tiwari]]></dc:creator>
            <pubDate>Thu, 11 May 2017 02:11:27 GMT</pubDate>
            <atom:updated>2017-08-25T21:43:46.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://medium.com/react-native-typescript"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_jfcQ5jBDZi1bQNHV_XyGg.png" /></a></figure><p>Open command prompt with admin privileges and use npm to globally install <em>‘react-native-cli</em>’ on your system.</p><pre>npm install -g react-native-cli</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*1vAN-hFNvKPMj1bL1umDFQ.png" /></figure><p>Once the above command completes, we would have <strong>react-native-cli </strong>installed.</p><h3>Setup and initialize/scaffold our React-native project</h3><p>We will use the above installed <strong>react-native-cli’s </strong><strong><em>init </em></strong>command to initialize our React-native project</p><ol><li>From the command prompt, cd to your working folder where you would like to get you project folder created.</li></ol><pre>C:\WINODWS\system32&gt; cd C:\working</pre><p>You can change to whatever is your working drive and folder e.g. C:\WINODWS\system32&gt; <strong>cd E:\myWorkingFolder</strong></p><p>2. Once in the working folder, create a subfolder ‘ReactNative’ using <em>mkdir </em>command.</p><pre>C:\working&gt; mkdir ReactNative</pre><p>3. Again, cd to the above created ‘ReactNative’ folder that we created above.</p><pre>C:\working&gt; cd ReactNative</pre><p>4. And finally once inside the ‘ReactNative’ folder, we run the below command</p><pre>C:\working\ReactNative&gt; <strong>react-native init momentz4ever</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FFaK5U4dOEe0qe7ReTUVuA.png" /></figure><p>Once the command completes, you should see something like below in the command prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e1xR3PLW_efqHyxGJJpjXA.png" /></figure><p>The above command will create a sub-folder momentz4ever and initialize a <em>react-native</em> project named<strong> ‘momentz4ever’</strong> in this folder.</p><p>Open the momentz4ever folder in your web editor (I am using <a href="https://code.visualstudio.com/">VS code</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YjYnc4JA3ZXv4bN5r4k-Jg.png" /></figure><p>Notice the index.android.js and index.ios.js files under the root folder. These two files would have same code initially.</p><p>Also notice the ‘<em>android</em>’ and <em>‘ios’</em> folders.</p><p>The way react-native works is - it takes the javascript code from the <em>index.android.js</em> (and its module dependencies), compiles it to native android code and places this native android code inside the <em>‘android’</em> folder.</p><p>In the same way, it stores the native iOS code, that it builds from the javascript code in <em>index.ios.js</em> (and its module dependencies), inside ‘iOS’ folder.</p><p>Thus we essentially have a fully ready android project inside the ‘android’ folder.</p><p>For the <a href="https://medium.com/react-native-typescript/task-4-opening-the-react-native-app-in-android-emulator-f3565f9f31a4">next task</a>, we would open this Android project from ‘Android Studio’ and then we would set up an Android phone emulator from where we will be testing our app as we develop it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQy2pOEES_43Boi9tvE6eg.png" /></figure><figure><a href="https://medium.com/react-native-typescript/task-2-installing-android-studio-bb28872f2839"><img alt="" src="https://cdn-images-1.medium.com/max/250/1*-ch1xBIjOLhFJrmtNsrUVQ.png" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*4yJfM3F_CweCqzpm2L4ZDw.png" /></figure><figure><a href="https://medium.com/react-native-typescript/task-4-opening-the-react-native-app-in-android-emulator-f3565f9f31a4"><img alt="" src="https://cdn-images-1.medium.com/max/250/1*0lpKU4YaL9ENlZCX3Djh7A.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1ca8c375938" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-typescript/task-3-installing-react-native-cli-and-creating-our-react-native-project-f1ca8c375938">Task 3- Installing React-Native CLI and creating our React-Native project</a> was originally published in <a href="https://medium.com/react-native-typescript">Developing a native mobile app with React-Native and Typescript</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Task 2 - Installing Android Studio]]></title>
            <link>https://medium.com/react-native-typescript/task-2-installing-android-studio-bb28872f2839?source=rss----d03db1b6f48---4</link>
            <guid isPermaLink="false">https://medium.com/p/bb28872f2839</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Bharat Tiwari]]></dc:creator>
            <pubDate>Wed, 10 May 2017 05:46:19 GMT</pubDate>
            <atom:updated>2017-08-26T02:46:58.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://medium.com/react-native-typescript"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_jfcQ5jBDZi1bQNHV_XyGg.png" /></a></figure><p>Go to<a href="https://developer.android.com/studio/index.html"> Android Studio Download</a> page and click on ‘Download Android Studio’ button to download it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBBTC70OyDZqPNMRYopgNg.png" /></figure><p>Once you click on the download button, it will prompt to accept / agree with Terms and Conditions, feel free to read the T&amp;Cs, select the bottom checkbox to agree with T&amp;Cs and click on <em>‘Download Android Studio for Windows’</em> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*foSfHJBlA02ntJnEXoARkg.png" /></figure><p>Android Studio would start the downloading which may take about 10 to 20 minutes. Once the installation file is downloaded, Android Studio setup will start. If it setup process doesn&#39;t start by itself, double click the downloaded application(.exe) file to start the installation of Android Studio.</p><p>(<a href="https://storage.googleapis.com/androiddevelopers/videos/studio-install-windows.mp4">Android Studio Setup video</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*nxqsHDxzIeplaqpd_4_Q1A.png" /></figure><p>Click ‘Next’ in the above screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*J2NQ6Sl3MprSI0tW_lo7Sg.png" /></figure><p>Select all the components in the above screen and click Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*OOlbPrNZDD3ApNHd8P4EKg.png" /></figure><p>Again, feel free to read the License Agreement if you wish, click on ‘I Agree’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*lp_PJmYKuAWWKAGSYhcCoQ.png" /></figure><p>In the above screen, keep the default values for the paths for <em>Android Studio Installation location</em> and <em>Android SDK Installation location</em>. Click ‘Next’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*JRV42mH_xMQp08b_Lu9WSQ.png" /></figure><p>In the above screen, choose a name for the start menu folder for Android Studio and click Install.</p><p>The installation will start and should complete after few minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*Krbl9lasgn2J_r-AV5iPLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*sOVLNQn9q1AtEFFdbDoJvg.png" /></figure><p>Once the installation is complete, click on ‘Next’ button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Mh9Sb3tnBvET0Wr7VCnIOg.png" /></figure><p>On the final screen of the Android Studio setup, click ‘Finish’ button.</p><p>Once the installation is complete, Android Studio will prompt you to select from below two options, select the appropriate option. For new installation, you would select the second option. Click Ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*SVllMmRjqvkPSeUDiHp5dw.png" /></figure><p>When starting for the first time, Android Studio will present the below Welcome screen to help setup the development environment. Click ‘Next’ on the below screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*CXMF0jE5YCmnmxFDFbkgTg.png" /></figure><p>Choose the type of setup in the following screen and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*js1mEmJbuzewPaKXOyCIKA.png" /></figure><p>Click ‘Finish’ in the next screen, Android Studio may start downloading few more components for the development environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*jzg3AXsFQYsck8_pw0fn2w.png" /></figure><p>That completes our Android Studio installation.</p><p>For the next task, we would install react-native command line interface and initialize our react-native project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQy2pOEES_43Boi9tvE6eg.png" /></figure><figure><a href="https://medium.com/react-native-typescript/task-1-setting-up-the-development-machine-175c116e9b51"><img alt="" src="https://cdn-images-1.medium.com/max/250/1*-ch1xBIjOLhFJrmtNsrUVQ.png" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*4yJfM3F_CweCqzpm2L4ZDw.png" /></figure><figure><a href="https://medium.com/react-native-typescript/task-3-installing-react-native-cli-and-creating-our-react-native-project-f1ca8c375938"><img alt="" src="https://cdn-images-1.medium.com/max/250/1*0lpKU4YaL9ENlZCX3Djh7A.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb28872f2839" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-typescript/task-2-installing-android-studio-bb28872f2839">Task 2 - Installing Android Studio</a> was originally published in <a href="https://medium.com/react-native-typescript">Developing a native mobile app with React-Native and Typescript</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Task 1 - Setting up the development machine]]></title>
            <link>https://medium.com/react-native-typescript/task-1-setting-up-the-development-machine-175c116e9b51?source=rss----d03db1b6f48---4</link>
            <guid isPermaLink="false">https://medium.com/p/175c116e9b51</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Bharat Tiwari]]></dc:creator>
            <pubDate>Wed, 10 May 2017 05:40:12 GMT</pubDate>
            <atom:updated>2019-05-02T22:18:05.294Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://medium.com/react-native-typescript"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_jfcQ5jBDZi1bQNHV_XyGg.png" /></a></figure><p>First things first. To start developing with react-native, lets first set up our development machine by installing the prerequisites, dependencies and required tools.</p><p>Just as a heads up, I am using Windows 10 machine, so this guide will be geared more towards windows environment. In case you have mac, not to worry, most of the dependencies should be very similar and <a href="https://facebook.github.io/react-native/docs/getting-started.html">React-native docs</a> has a detailed <a href="https://facebook.github.io/react-native/docs/getting-started.html">‘Getting started’</a> guide to help installing the dependencies for Mac and Linux as well.</p><p>Below are the dependencies we need to install.</p><ol><li>Java SDK (latest version) — a prerequisite for Android Studio</li><li>NodeJS — for javascript module package manager.</li><li>Python 2</li><li>Android Studio.</li></ol><p>To install the above dependencies, we’ll use <a href="https://chocolatey.org/"><strong>chocolatey</strong></a>, a package manager for Windows applications. So let’s first install chocolatey.</p><h3>Installing <a href="https://chocolatey.org/">chocolatey</a></h3><p>Open command prompt with Admin privileges and type the following command (see <a href="https://chocolatey.org/install">https://chocolatey.org/install</a> to see the prerequisites and other options for installing chocolatey.)</p><pre><a href="http://twitter.com/powershell">@powershell</a> -NoProfile -ExecutionPolicy Bypass -Command &quot;iex ((New-Object System.Net.WebClient).DownloadString(&#39;<a href="https://chocolatey.org/install.ps1&#39;">https://chocolatey.org/install.ps1&#39;</a>))&quot; &amp;&amp; SET &quot;PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin&quot;</pre><p>Run the above command from Command prompt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIIjdOOnj8EcMrsJUdAlcA.png" /></figure><p>The above command will start downloading and installing Chocolatey. Once the installation is complete, the screen should be something like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BqCn99EkafHeZg8x3_5FtQ.png" /></figure><h3>Installing Node JS</h3><p>With command prompt opened with ‘Administrator privileges’, run the below command to install NodeJS</p><pre>choco install nodejs.install</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opuJOkpjO23y-HUdGQdKCw.png" /></figure><p>When prompted for confirmation to run the script to install nodejs, enter ‘Y’ for Yes and allow the installation to complete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGD4CubIHDDbWXL2OaUChw.png" /></figure><h3>Installing Python 2</h3><p>With command prompt opened with ‘Administrator privileges’, run the below command to install Python 2</p><pre>choco install python2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ey9FcJP_zl_WZLEaLhz8AQ.png" /></figure><p>When prompted to confirm running the script to install python 2, enter ‘Y’ for Yes and allow the installation to complete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bf7liECt6tH4VNlLNzLrtA.png" /></figure><h3>Installing Java JDK</h3><p>With command prompt opened with ‘Administrator privileges’, run the below command to install jdk8 (as of writing of this story, the latest jdk version is 8, you may have some other higher version available as latest jdk version, always download the latest version)</p><pre>choco install jdk8</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BuSN-fnLhcWyMjq-tbIhiw.png" /></figure><p>When prompted for confirmation to run the script to install jdk8, enter ‘Y’ for Yes and allow the installation to complete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wz-JU0ZfnUCSch-LIHgvgw.png" /></figure><p>Now that we got node, python and jdk installed on our development machine, we’ll install Android Studio as our next task.</p><h3>Install yarn and GIT</h3><pre>choco install yarn<br>choco install git.install</pre><p>If you are working on a corporate machine, you are probably secured by a proxy firewall, for this run</p><pre>yarn config set strict-ssl false</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQy2pOEES_43Boi9tvE6eg.png" /></figure><figure><a href="https://medium.com/react-native-typescript/introduction-93f35621637a"><img alt="" src="https://cdn-images-1.medium.com/max/250/1*-ch1xBIjOLhFJrmtNsrUVQ.png" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*4yJfM3F_CweCqzpm2L4ZDw.png" /></figure><figure><a href="https://medium.com/react-native-typescript/task-2-installing-android-studio-bb28872f2839"><img alt="" src="https://cdn-images-1.medium.com/max/250/1*0lpKU4YaL9ENlZCX3Djh7A.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=175c116e9b51" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-typescript/task-1-setting-up-the-development-machine-175c116e9b51">Task 1 - Setting up the development machine</a> was originally published in <a href="https://medium.com/react-native-typescript">Developing a native mobile app with React-Native and Typescript</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction]]></title>
            <link>https://medium.com/react-native-typescript/introduction-93f35621637a?source=rss----d03db1b6f48---4</link>
            <guid isPermaLink="false">https://medium.com/p/93f35621637a</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Bharat Tiwari]]></dc:creator>
            <pubDate>Mon, 08 May 2017 04:48:23 GMT</pubDate>
            <atom:updated>2017-05-10T05:42:47.820Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://medium.com/react-native-typescript"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_jfcQ5jBDZi1bQNHV_XyGg.png" /></a></figure><p>Couple of weeks back, I and some of my friends, started on a side/hobby project to learn reactJS. We decided on developing a mobile app with react-native just because the idea of developing a native mobile app with javascript felt very exciting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*8QDxuT8TvEOGM7QNQugzOQ.png" /></figure><p>We also thought of using Typescript with React because we feel it not only just brings type-safety to the javascript code but in-fact brings all the advantages of object-oriented programming allowing us to think javascript code in terms of some well-established design patterns and standards that help us design highly scalable code. The goodies it brings — abstract and concrete classes, types, interface, enums are hard to resist.</p><p>As we started on the development of the app, I thought it would be a good idea to put our learnings here in a series as it not only will help us document our tasks but would also help other react-native learners and developers.</p><p>In this series, we will document step-by-step each task that we work on during the development of this app, right from the initial project set-up to its final implementation and release to the app store.</p><h3><strong>What app we are going to develop</strong></h3><p>The app we would be developing would be a simple photo albums app, where user can create an album and add photos to its from his/her mobile.</p><h3>Tech-stack to be used</h3><ol><li>UI using react-native + Typescript</li><li>Storage — Azure DocumentDB</li><li>REST API using node.js, Azure DocumentDB Node API</li><li>Authentication — oAuth (Facebook and Google)</li></ol><h3>Targeted platforms</h3><p>In its first version, we are planning to target only Android platform simply because couple of us in the team don’t own a Mac Book and apple doesn’t allow to develop iOS apps from any other operating system.</p><h3>Github Repo</h3><p><a href="https://github.com/jsified-brains/momentz4ever">jsified-brains/momentz4ever</a></p><h3>Our Limitations</h3><ol><li>We are all learners of react/react-native, also this being a side project that we all will work on in our spare time, we are anticipating the project to go on a bit slow pace.</li><li>Functional Testing — we don’t have a QE Automation expert in our team yet, so for most of its part Functional testing would be manual</li></ol><p>3. Environment — for the UI app, we will use emulators on our local system to test our code. Being a mobile app, it would be released to Android Playstore and thus we don’t need to maintain any servers for the UI app</p><p>4. Environment for the REST API layer — this we haven’t got think-through yet (suggestions welcome)</p><p>5. and many more …. :)</p><h3>Lets begin</h3><p>We have already got ball rolling and have started on setting up the ground work and soon start sharing our learnings. So stay tuned, more stories to come soon</p><h3>Interested in joining us in this wonderful journey?</h3><p>we’ll be glad to have you in our team, pls email to us at iw2dev@gmail.com with a little bit about yourself</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQy2pOEES_43Boi9tvE6eg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*4yJfM3F_CweCqzpm2L4ZDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*4yJfM3F_CweCqzpm2L4ZDw.png" /></figure><figure><a href="https://medium.com/react-native-typescript/task-1-setting-up-the-development-machine-175c116e9b51"><img alt="" src="https://cdn-images-1.medium.com/max/250/1*0lpKU4YaL9ENlZCX3Djh7A.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93f35621637a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-typescript/introduction-93f35621637a">Introduction</a> was originally published in <a href="https://medium.com/react-native-typescript">Developing a native mobile app with React-Native and Typescript</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>