<?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 Divyanshu Kumar on Medium]]></title>
        <description><![CDATA[Stories by Divyanshu Kumar on Medium]]></description>
        <link>https://medium.com/@divyanshukumarg?source=rss-a58e7b5a4423------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qPbs9zTNUWmvRP3E.</url>
            <title>Stories by Divyanshu Kumar on Medium</title>
            <link>https://medium.com/@divyanshukumarg?source=rss-a58e7b5a4423------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:04:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@divyanshukumarg/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[Getting react-native-qrcode-scanner running with latest react-native]]></title>
            <link>https://medium.com/@divyanshukumarg/getting-react-native-qrcode-scanner-running-with-latest-react-native-a293fcb8171d?source=rss-a58e7b5a4423------2</link>
            <guid isPermaLink="false">https://medium.com/p/a293fcb8171d</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[qrcodescanner]]></category>
            <category><![CDATA[qr-code]]></category>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Sun, 01 Sep 2019 14:20:00 GMT</pubDate>
            <atom:updated>2019-09-01T14:20:00.768Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YdCPjZtVITX-vJnvkh-PQ.png" /><figcaption>Solving error while adding react-native-qrcode-scanner</figcaption></figure><p>I was trying to install react-native-qr-code-scanner with most recent version of react-native but I was not able to able to run it successfully.</p><p>I tried to google but there were so many solutions requiring to edit AndroidManifest, settings.gradle and a lot which lead to a lot of confusion, so I thought to write an article giving an easy way to install qr-code-scanner with react-native-camera without any issues.</p><p><strong>Steps:</strong></p><ol><li>Install all the libraries:</li></ol><pre>$ yarn add react-native-camera<br>$ yarn add react-native-qrcode-scanner<br>$ yarn add react-native-permissions</pre><p>2. Link the libraries</p><pre>$ react-native link react-native-camera<br>$ react-native link react-native-qrcode-scanner<br>$ react-native link react-native-permissions</pre><p>But if you try to run just after this, you may get an error such as:</p><pre>FAILURE: Build failed with an exception.<br><br>* What went wrong:<br>Could not determine the dependencies of task &#39;:app:preDebugBuild&#39;.<br>&gt; Could not resolve all task dependencies for configuration &#39;:app:debugRuntimeClasspath&#39;.<br>   &gt; Could not resolve project :react-native-camera.<br>     Required by:<br>         project :app<br>      &gt; Cannot choose between the following variants of project :react-native-camera:<br>          - generalDebugRuntimeElements<br>          - mlkitDebugRuntimeElements<br>        All of them match the consumer attributes:<br>          - Variant &#39;generalDebugRuntimeElements&#39; capability EasyQueue:react-native-camera:unspecified:<br>              - Unmatched attributes:<br>.........</pre><p><strong>Fix:</strong></p><p>The fix is really easy, just add a single line: missingSimensionStratergy …to android/app/build.gradle as following:</p><pre>android {<br>...</pre><pre>defaultConfig {<br>        ...<br>        missingDimensionStrategy &#39;react-native-camera&#39;, &#39;general&#39; <br>    }</pre><p>Easy fix, but wasted a few hours of mine.</p><p>Hope this helps.</p><p>Happy Coding</p><p>Divyanshu Kumar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a293fcb8171d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Serverless App Architecture with Doodles]]></title>
            <link>https://codeburst.io/understanding-serverless-app-architecture-with-doodles-754e9f6e2f6a?source=rss-a58e7b5a4423------2</link>
            <guid isPermaLink="false">https://medium.com/p/754e9f6e2f6a</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[cloud-functions]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[3rd-party-authentication]]></category>
            <category><![CDATA[faa]]></category>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Mon, 18 Feb 2019 18:11:25 GMT</pubDate>
            <atom:updated>2019-02-19T23:24:40.353Z</atom:updated>
            <content:encoded><![CDATA[<p>Serverless applications are internet based application/system which do not use a dedicated server but instead use third party services for authentication, cloud functionality and data storage.</p><p>A traditional application architecture looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAd5kLTxAjIvRhoUwQ1pJw.png" /></figure><p>A traditional architecture includes various dedicated server driven or stored functionalities including user authentication, database access and business logic.</p><p>Now, when this architecture is made serverless, it looks like following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mBR96Sanc2cdQTRyf8GwBw.png" /></figure><p>Let me walk you through a few milestones of it:</p><ol><li>Third party Authentication: This includes the authentication of user using the third party services like OAuth, Social Login(including Google Login, Facebook Login, etc), this helps a lot of time and effort of developers coding the authentication logic.</li><li>Function as a Service (Faas):</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kCVkti9u3_PM_j39U1cveQ.png" /></figure><p>Traditional / Ordinary system have a dedicated server which listens for client requests and responds to them accordingly.</p><p>But in a FaaS system, the cloud functions play a vital role, more than 100 parallel requests are processed by the vendor and most importantly no cluster or VM management is required by the user at all and <strong>all underlying resource provisioning and allocation are done by the vendor.</strong></p><p>Examples Include Firebase Cloud Functions, AWS Lambda etc.</p><p>3. Cloud Database: This includes using cloud databases for data storage like Firebase, IBM Cloudant etc.</p><h3>A few advantages of Serverless Architecture:</h3><ol><li>Easier Horizontal Scalability: as I told earlier, the cloud functions are managed by the vendor which allow high parallel execution with low development cost.</li><li>A fully serverless architecture requires zero system administration.</li><li>Reduced cost: It reduces the cost of deployment and development both, since it does not include the cost of a dedicated server and a dedicated server logic. We only <strong>pay for the amount of computational power we use</strong>.</li><li>Most of the business logic is incorporated in App only which results in faster computations and response time.</li></ol><p>For example we have inconsistent traffic on our app, like we had only 4 requests for a 2–3 months and then a very high requests for next month. In traditional method we have to pay for 4 months for dedicated server, whereas in Serverless architecture we only pay for the computational time and not for the idle time.</p><h3>But nothing comes without <strong>disadvantages/limitations</strong>, a few of them are:</h3><ol><li>Security Issues: It may cause security concerns when the authentication and data control lies with the vendor, hence a few people might not feel it authentic.</li><li>Vendor Block in: It may happen like, a vendor may become a necessity for the application and hence it may lead to increased cost and demands of vendor.</li><li>Absence of Local testing and debugging: Testing and debugging may be a bit difficult with cloud functions, due to inability to deploy them locally.</li></ol><p>In conclusion serverless architecture involves its own advantages and disadvantages, so it is worth an attempt. Do give it a try for at least an experimental project and do let me know your experience.</p><p>Happy Coding</p><p>Divyanshu Kumar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=754e9f6e2f6a" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/understanding-serverless-app-architecture-with-doodles-754e9f6e2f6a">Understanding Serverless App Architecture with Doodles</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding Push Notifications in React Native with custom sounds (Vanilla Flavor)]]></title>
            <link>https://codeburst.io/adding-push-notifications-in-react-native-with-custom-sounds-vanilla-flavor-d367c101ef60?source=rss-a58e7b5a4423------2</link>
            <guid isPermaLink="false">https://medium.com/p/d367c101ef60</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[custom-sound]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Sun, 02 Dec 2018 10:59:05 GMT</pubDate>
            <atom:updated>2018-12-03T15:19:16.265Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Loj323oKcG7OLaAB4V7ilw.png" /><figcaption>Notification with custom sound on Android.</figcaption></figure><p>I was working on a project, and then I had this crazy idea of push notifications with custom sound. Now, first task was to implement a simple push notification and then add custom sound to it.</p><p>Then I thought of writing a guide for the same, so here it is:</p><p>Important Note: Push Notifications do not work well on iOS Simulator so for testing on iOS you will need actual iOS device</p><p><strong>PART 1: Adding Simple push notification</strong></p><p>Steps Involved:</p><ol><li>Adding react-native-push-notification library.</li></ol><p>yarn add react-native-push-notification</p><p>2. Linking the library</p><p>react-native link react-native-push-notification</p><p>3. iOS configuration:</p><ul><li>Add the following to your Project: node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj</li><li>Add the following to Link Binary With Libraries: libRCTPushNotification.a</li></ul><p>Finally, to enable support for notification and register events you need to augment your AppDelegate.</p><p>At the top of your AppDelegate.m:</p><p>#import &lt;React/RCTPushNotificationManager.h&gt;</p><p>And then in your AppDelegate implementation add the following:</p><pre>// Required to register for notifications<br> - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings<br> {<br>  [RCTPushNotificationManager didRegisterUserNotificationSettings:notificationSettings];<br> }<br> // Required for the register event.<br> - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken<br> {<br>  [RCTPushNotificationManager didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];<br> }<br> // Required for the notification event. You must call the completion handler after handling the remote notification.<br> - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo<br>                                                        fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler<br> {<br>   [RCTPushNotificationManager didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];<br> }<br> // Required for the registrationError event.<br> - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error<br> {<br>  [RCTPushNotificationManager didFailToRegisterForRemoteNotificationsWithError:error];<br> }<br> // Required for the localNotification event.<br> - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification<br> {<br>  [RCTPushNotificationManager didReceiveLocalNotification:notification];<br> }</pre><p>4. Android Configuration:</p><p>In your android/build.gradle</p><pre>ext {<br>    googlePlayServicesVersion = &quot;&lt;Your play services version&gt;&quot; // default: &quot;+&quot;<br>    firebaseVersion = &quot;&lt;Your Firebase version&gt;&quot; // default: &quot;+&quot;</pre><pre>    // Other settings<br>    compileSdkVersion = &lt;Your compile SDK version&gt; // default: 23<br>    buildToolsVersion = &quot;&lt;Your build tools version&gt;&quot; // default: &quot;23.0.1&quot;<br>    targetSdkVersion = &lt;Your target SDK version&gt; // default: 23<br>    supportLibVersion = &quot;&lt;Your support lib version&gt;&quot; // default: 23.1.1<br>}</pre><p><strong>NOTE: localNotification() works without changes in the application part, while localNotificationSchedule() only works with these changes:</strong></p><p>In your AndroidManifest.xml</p><ul><li>*** Be sure to replace ${applicationId} with your android Application Id, its typically of the form com.appName***</li></ul><pre>.....<br>    &lt;!-- &lt; Only if you&#39;re using GCM or localNotificationSchedule() &gt; --&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.WAKE_LOCK&quot; /&gt;<br>    &lt;permission<br>        android:name=&quot;${applicationId}.permission.C2D_MESSAGE&quot;<br>        android:protectionLevel=&quot;signature&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;${applicationId}.permission.C2D_MESSAGE&quot; /&gt;<br>    &lt;!-- &lt; Only if you&#39;re using GCM or localNotificationSchedule() &gt; --&gt;</pre><pre>    &lt;uses-permission android:name=&quot;android.permission.VIBRATE&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.RECEIVE_BOOT_COMPLETED&quot;/&gt;</pre><pre>    &lt;application ....&gt;<br>        &lt;meta-data  android:name=&quot;com.dieam.reactnativepushnotification.notification_channel_name&quot;<br>                android:value=&quot;YOUR NOTIFICATION CHANNEL NAME&quot;/&gt;<br>        &lt;meta-data  android:name=&quot;com.dieam.reactnativepushnotification.notification_channel_description&quot;<br>                    android:value=&quot;YOUR NOTIFICATION CHANNEL DESCRIPTION&quot;/&gt;<br>        &lt;!-- Change the resource name to your App&#39;s accent color - or any other color you want --&gt;<br>        &lt;meta-data  android:name=&quot;com.dieam.reactnativepushnotification.notification_color&quot;<br>                    android:resource=&quot;@android:color/white&quot;/&gt;</pre><pre>        &lt;!-- &lt; Only if you&#39;re using GCM or localNotificationSchedule() &gt; --&gt;<br>        &lt;receiver<br>            android:name=&quot;com.google.android.gms.gcm.GcmReceiver&quot;<br>            android:exported=&quot;true&quot;<br>            android:permission=&quot;com.google.android.c2dm.permission.SEND&quot; &gt;<br>            &lt;intent-filter&gt;<br>                &lt;action android:name=&quot;com.google.android.c2dm.intent.RECEIVE&quot; /&gt;<br>                &lt;category android:name=&quot;${applicationId}&quot; /&gt;<br>            &lt;/intent-filter&gt;<br>        &lt;/receiver&gt;<br>        &lt;!-- &lt; Only if you&#39;re using GCM or localNotificationSchedule() &gt; --&gt;</pre><pre>        &lt;receiver android:name=&quot;com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher&quot; /&gt;<br>        &lt;receiver android:name=&quot;com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver&quot;&gt;<br>            &lt;intent-filter&gt;<br>                &lt;action android:name=&quot;android.intent.action.BOOT_COMPLETED&quot; /&gt;<br>            &lt;/intent-filter&gt;<br>        &lt;/receiver&gt;<br>        &lt;service android:name=&quot;com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService&quot;/&gt;</pre><pre>        &lt;!-- &lt; Only if you&#39;re using GCM or localNotificationSchedule() &gt; --&gt;<br>        &lt;service<br>            android:name=&quot;com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerServiceGcm&quot;<br>            android:exported=&quot;false&quot; &gt;<br>            &lt;intent-filter&gt;<br>                &lt;action android:name=&quot;com.google.android.c2dm.intent.RECEIVE&quot; /&gt;<br>            &lt;/intent-filter&gt;<br>        &lt;/service&gt;<br>        &lt;!-- &lt;/ Only if you&#39;re using GCM or localNotificationSchedule() &gt; --&gt;</pre><pre>        &lt;!-- &lt; Else &gt; --&gt;<br>        &lt;service<br>            android:name=&quot;com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService&quot;<br>            android:exported=&quot;false&quot; &gt;<br>            &lt;intent-filter&gt;<br>                &lt;action android:name=&quot;com.google.firebase.MESSAGING_EVENT&quot; /&gt;<br>            &lt;/intent-filter&gt;<br>        &lt;/service&gt;<br>        &lt;!-- &lt;/Else&gt; --&gt;<br>     .....</pre><p>In android/app/src/main/res/values/colors.xml (Create the file if it doesn&#39;t exist).</p><pre>&lt;resources&gt;<br>    &lt;color name=&quot;white&quot;&gt;#FFF&lt;/color&gt;<br>&lt;/resources&gt;</pre><p>Manually register module in MainApplication.java (if you did not use react-native link):</p><pre>import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;  // &lt;--- Import Package</pre><pre>public class MainApplication extends Application implements ReactApplication {</pre><pre>  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {<br>      @Override<br>      protected boolean getUseDeveloperSupport() {<br>        return BuildConfig.DEBUG;<br>      }</pre><pre>      @Override<br>      protected List&lt;ReactPackage&gt; getPackages() {</pre><pre>      return Arrays.&lt;ReactPackage&gt;asList(<br>          new MainReactPackage(),<br>          new ReactNativePushNotificationPackage() // &lt;---- Add the Package<br>      );<br>    }<br>  };</pre><pre>  ....<br>}</pre><p>I am thankful to <a href="https://medium.com/u/1ec17560bf99">Spencer Carli</a> for a wonderful video tutorial for simple push notifications in React native.(Source: <a href="https://medium.com/differential/how-to-setup-push-notifications-in-react-native-ios-android-30ea0131355e">https://medium.com/differential/how-to-setup-push-notifications-in-react-native-ios-android-30ea0131355e</a>)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTQmudJLhPx8%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTQmudJLhPx8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTQmudJLhPx8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/81feae4aa711693c4a9a1fbbbe5bec7f/href">https://medium.com/media/81feae4aa711693c4a9a1fbbbe5bec7f/href</a></iframe><p>Now the hard part is over, moving on to the easier part.</p><p><strong>Part 2: Adding Custom Sound</strong></p><ol><li>Modify the PushNotification call in handleAppStateChange(appState) function as follows:</li></ol><pre>PushNotification.localNotificationSchedule({</pre><pre>message: &quot;My Notification Message&quot;,</pre><pre>date,</pre><pre>soundName: &quot;rush&quot;</pre><pre>});</pre><p>Where rush is the custom sound name.</p><p>soundName – Value of &#39;default&#39; plays the default sound.</p><p><strong>Where to place the custom tone??</strong></p><p>In android, add your custom sound file to [project_root]/android/app/src/main/res/raw</p><p>In iOS, add your custom sound file to the project Resources in xCode.</p><p><strong>Full source code: </strong><a href="https://github.com/dvkcool/pushNotification-RN">https://github.com/dvkcool/pushNotification-RN</a></p><p><strong>References:</strong></p><ol><li><a href="https://github.com/zo0r/react-native-push-notification">https://github.com/zo0r/react-native-push-notification</a></li><li><a href="https://medium.com/differential/how-to-setup-push-notifications-in-react-native-ios-android-30ea0131355e">https://medium.com/differential/how-to-setup-push-notifications-in-react-native-ios-android-30ea0131355e</a></li></ol><p>__________________________________________________________________</p><p>Happy Coding</p><p>Divyanshu Kumar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d367c101ef60" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/adding-push-notifications-in-react-native-with-custom-sounds-vanilla-flavor-d367c101ef60">Adding Push Notifications in React Native with custom sounds (Vanilla Flavor)</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making a Login app using React-native and Hasura without Redux.]]></title>
            <link>https://codeburst.io/making-a-login-app-using-react-native-and-hasura-without-redux-bb31d102038d?source=rss-a58e7b5a4423------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb31d102038d</guid>
            <category><![CDATA[login]]></category>
            <category><![CDATA[without-redux]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 11:11:34 GMT</pubDate>
            <atom:updated>2018-02-19T14:16:01.982Z</atom:updated>
            <content:encoded><![CDATA[<p>I wanted to build an application with login and sign up feature, I ended up with some of the tutorials which use Redux for state management.</p><p>Since I had no prior experience of using Redux, it became quite a task for me. So I decided to ditch Redux and use local state of react-native for this example and now.</p><h4><strong>Q: Is Re</strong>dux better than local state</h4><p>Both have their benefits and demerits, so can’t say which is better. But yes, implementing Redux is bit lengthy.</p><p>For any small need in Redux, you need to touch store, reducers. Sometimes you don’t actually need it. It depends on you, whether you want to do it Redux way or local state.</p><p>But local state is definitely easier.</p><h4><strong>Q: What back end code do I need to write</strong></h4><p>Nothing, really nothing.</p><p>Don’t be surprised, Hasura comes in play here and provides many pre-built APIs with their clusters, one of them is AUTH API which lets you manage login/signup process with following ways:</p><ol><li>Conventional username and password method.</li><li>Various social platform logins</li><li>OTP login with help of SMS providers</li></ol><p>It provides feature to manage the roles assigned to each user, which can be implemented as giving write access or some other permissions based on his role.</p><h4>Q: How to get this Hasura feature</h4><p>Just follow the following steps and you will have a free cluster with some very cool APIs:</p><p>(I am mentioning steps for Linux machines, if you want to know the steps for other OS such as Windows or Mac, have a look at the Hasura docs: <a href="https://docs.hasura.io/0.15/manual/getting-started/index.html">https://docs.hasura.io/0.15/manual/getting-started/index.html,</a> big shout out for Hasura Team for having such elaborative docs.)</p><ol><li>Get the hasura cli: Open your linux shell and run the following command:</li></ol><pre>curl -L <a href="https://hasura.io/install.sh">https://hasura.io/install.sh</a> | bash</pre><p>2. Login: Enter the following command and it will open a browser for you, where you can login with various platforms too:</p><pre>hasura login</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*Dq7-tkzK_in5Ak06QuxtbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*YEzf9sRHSiOtRbA2rnRkdg.png" /></figure><p>Just use any social login such as Google or GitHub to login.</p><p>Then Click on Allow button, to allow hasura to manage your cluster information.</p><p>Now return to the terminal and execute following commands</p><pre># Lets setup one of many quickstarts provided by Hasura<br>$ hasura quickstart hasura/hello-nodejs-express --type free<br>$ cd hello-nodejs-express<br>$ git add .<br>$ git commit -m &quot;First Commit&quot;<br>$ git push hasura master</pre><p>You are done, you have successfully created a back end for your project.</p><h4>Creating the front end using React-native</h4><p>I am going to use fetch API for making the requests to backend. If you want to see how its implemented in react-native, you can have a look at my previous article(<a href="https://codeburst.io/integrating-react-native-apps-with-back-end-code-using-fetch-api-8aeb83dfb428">https://codeburst.io/integrating-react-native-apps-with-back-end-code-using-fetch-api-8aeb83dfb428</a>)</p><p>I will be creating async functions in my class App to get the details:</p><pre>Signup = async () =&gt; {<br>    fetch(&#39;<a href="https://auth.&/#39;+cluster.name+&#39;.hasura-app.io/v1/signup&#39;">https://auth.&#39;+cluster.name+&#39;.hasura-app.io/v1/signup&#39;</a>, {<br>      method: &#39;post&#39;,<br>      headers: {<br>        &#39;Content-Type&#39;: &#39;application/json&#39;<br>      },<br>      body: JSON.stringify({<br>        &quot;provider&quot;: &quot;username&quot;,<br>        &quot;data&quot;: {<br>        &quot;username&quot;: this.state.username,<br>        &quot;password&quot;: this.state.password<br>        }<br>        })<br>    }).then((response) =&gt; response.json())<br>    .then((res) =&gt; {<br>      if(typeof(res.message) != &quot;undefined&quot;){<br>      Alert.alert(&quot;Error signing up&quot;, &quot;Error: &quot;+ res.message);</pre><pre>}<br>      else{<br>      this.setState({ auth_token: res.auth_token });<br>      Alert.alert(&quot;Success&quot;, &quot;You have succesfully signed up&quot;);<br>      }<br>    }).catch((error) =&gt; {<br>    console.error(error);<br>    });<br>  }</pre><p>Similarly a login process can be written, the code can be generated using the hasura api-console. To do so just run hasura api-console in your terminal, it will open a page as follows, in which you can navigate to Auth section to get appropriate code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y0BFStwO3BdkutUN6_X2KA.png" /><figcaption>Use appropriate section for generating code.</figcaption></figure><p>We could include a TextInput value for getting the value of user name and email,</p><p>Also the <em>auth_token can be checked</em> while rendering, so as to ensure the user logs in once, and next time he/she opens the app, they are already logged in.</p><p>Also create a page Home where you would like to navigate after successfull login/signup.</p><p>Here is the complete code of App.js file:</p><pre>import React, { Component } from &#39;react&#39;<br>import { View, Text,  Alert, Button, TextInput, TouchableOpacity } from &#39;react-native&#39;;<br>import Home from &#39;./Home&#39;;<br>export default class App extends Component{<br>  state = {<br>    username: &#39;&#39;,<br>    password: &#39;&#39;,<br>    auth_token: &#39;&#39;<br>  }</pre><pre>Signup = async () =&gt; {<br>    fetch(&#39;<a href="https://auth.&/#39;+cluster.name+&#39;.hasura-app.io/v1/signup&#39;">https://auth.clustername+.hasura-app.io/v1/signup&#39;</a>, {<br>      method: &#39;post&#39;,<br>      headers: {<br>        &#39;Content-Type&#39;: &#39;application/json&#39;<br>      },<br>      body: JSON.stringify({<br>        &quot;provider&quot;: &quot;username&quot;,<br>        &quot;data&quot;: {<br>        &quot;username&quot;: this.state.username,<br>        &quot;password&quot;: this.state.password<br>        }<br>        })<br>    }).then((response) =&gt; response.json())<br>    .then((res) =&gt; {<br>      if(typeof(res.message) != &quot;undefined&quot;){<br>      Alert.alert(&quot;Error signing up&quot;, &quot;Error: &quot;+ res.message);</pre><pre>}<br>      else{<br>      this.setState({ auth_token: res.auth_token });<br>      Alert.alert(&quot;Success&quot;, &quot;You have succesfully signed up&quot;);<br>      }<br>    }).catch((error) =&gt; {<br>    console.error(error);<br>    });<br>  }<br>  Login = async () =&gt; {<br>    fetch(&#39;<a href="https://auth.&/#39;+cluster.name+&#39;.hasura-app.io/v1/login&#39;">https://auth.clustername.hasura-app.io/v1/login&#39;</a>, {<br>          method: &#39;post&#39;,<br>          headers: {<br>            &#39;Content-Type&#39;: &#39;application/json&#39;<br>          },<br>          body: JSON.stringify({<br>            &quot;provider&quot;: &quot;username&quot;,<br>            &quot;data&quot;: {<br>                &quot;username&quot;: this.state.username,<br>                &quot;password&quot;: this.state.password<br>            }<br>          })<br>        }).then((response) =&gt; response.json())<br>        .then((res) =&gt; {<br>      if(typeof(res.message) != &quot;undefined&quot;){<br>       Alert.alert(&quot;Error&quot;, &quot;Error: &quot;+ res.message);<br>      }<br>      else{<br>        this.setState({ auth_token: res.auth_token });<br>        Alert.alert(&quot;Welcome&quot;, &quot; You have succesfully logged in&quot;);<br>        }<br>     }).catch((error) =&gt; {<br>         console.error(error);<br>        });<br>  }<br>  render(){<br>  //If auth token is not present<br>   if(this.state.auth_token==&#39;&#39;){<br>     return(<br>     &lt;View&gt;<br>     &lt;TextInput<br>           placeholder=&quot;Enter User name&quot;<br>           onChangeText={ TextInputValue =&gt;<br>           this.setState({username : TextInputValue }) }<br>           underlineColorAndroid=&#39;transparent&#39;<br>           style={<br>           {<br>               textAlign: &#39;center&#39;,<br>               width: &#39;90%&#39;,<br>               marginBottom: 7,<br>               height: 40,<br>               borderRadius: 5 ,<br>               fontSize: 20,<br>           }<br>         }<br>         /&gt;<br>     &lt;TextInput<br>           placeholder=&quot;Enter password&quot;<br>           onChangeText={ TextInputValue =&gt;<br>           this.setState({password: TextInputValue }) }<br>           underlineColorAndroid=&#39;transparent&#39;<br>           secureTextEntry={true}<br>           style={<br>           {<br>               textAlign: &#39;center&#39;,<br>               width: &#39;90%&#39;,<br>               marginBottom: 7,<br>               height: 40,<br>               borderRadius: 5 ,<br>               fontSize: 20,<br>           }<br>         }<br>         /&gt;<br>        &lt;TouchableOpacity onPress={this.Signup.bind(this)}&gt;<br>        &lt;View style={{height: 50, backgroundColor:<br>        &#39;purple&#39;,justifyContent: &#39;center&#39;,<br>        alignItems: &#39;center&#39;,}}&gt;<br>          &lt;Text style={{<br>          fontSize: 20,<br>          color: &#39;#FFFFFF&#39;,<br>          }}&gt; <br>          Signup&lt;/Text&gt;<br>        &lt;/View&gt;<br>        &lt;/TouchableOpacity&gt;<br>        &lt;TouchableOpacity onPress={this.Login.bind(this)}&gt;<br>        &lt;View style={{height: 50, backgroundColor:<br>        &#39;purple&#39;,justifyContent: &#39;center&#39;,<br>        alignItems: &#39;center&#39;,}}&gt;<br>          &lt;Text style={{<br>          fontSize: 20,<br>          color: &#39;#FFFFFF&#39;,<br>          }}&gt; <br>          Login &lt;/Text&gt;<br>        &lt;/View&gt;<br>        &lt;/TouchableOpacity&gt;<br>     &lt;/View&gt;<br>        );<br>      }</pre><pre>/* Checking if the auth token is not empty directly sending the user to Home screen */<br>      else{<br>        return(<br>          &lt;Home /&gt;<br>        );<br>    }</pre><pre>}<br>}</pre><p>For the above code to work you must have a Home.js file in your app directory</p><p>Just compile the code and you have a basic signup .</p><p>Since this article is already quite lengthy. I would like to stop on this abstract idea, however if you have any queries do respond, I will try to answer them if they are in my reach.</p><p>Happy Developing :)</p><p>Divyanshu Kumar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb31d102038d" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/making-a-login-app-using-react-native-and-hasura-without-redux-bb31d102038d">Making a Login app using React-native and Hasura without Redux.</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating React-native apps with back-end code using fetch API]]></title>
            <link>https://codeburst.io/integrating-react-native-apps-with-back-end-code-using-fetch-api-8aeb83dfb428?source=rss-a58e7b5a4423------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aeb83dfb428</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[fetch-api]]></category>
            <category><![CDATA[server-end-points]]></category>
            <category><![CDATA[hasura]]></category>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Mon, 29 Jan 2018 20:11:36 GMT</pubDate>
            <atom:updated>2018-05-03T12:08:57.482Z</atom:updated>
            <content:encoded><![CDATA[<p>Many people tend to get confused, how to integrate their back-end code( Node-express, Python-flask etc).</p><p>To solve this best way is to create a URL on server which takes data as json from server and process it and reply with json data, using a post request.</p><h3>Q: Why only POST, why not GET</h3><p>The two common methods are GET and POST:</p><ul><li><strong>GET</strong> — Requests data from a specified resource</li><li><strong>POST</strong> — Submits data to be processed to a specified resource</li></ul><p><strong>But there are some limitations to GET requests as follows:</strong></p><ul><li>GET requests can be cached</li><li>GET requests remain in the browser history</li><li>GET requests can be bookmarked</li><li>GET requests should never be used when dealing with sensitive data</li><li>GET requests have length restrictions</li><li>GET requests should be used only to retrieve data</li></ul><p><strong>Some + points on POST requests:</strong></p><ul><li>POST requests are never cached</li><li>POST requests do not remain in the browser history</li><li>POST requests cannot be bookmarked</li><li>POST requests have no restrictions on data length</li></ul><p>(Source: <a href="https://www.w3schools.com/tags/ref_httpmethods.asp">https://www.w3schools.com/tags/ref_httpmethods.asp</a>)</p><p>In GET request the parameters are sent as url, which sometimes you don’t want. Like you may have some sensitive data for e.g. user-name and password, which needs to be hidden while making a request, so POST request is better alternative.</p><p>Also if you want to send data other that ASCII characters GET requests are not that handy, however POST is better in such cases.</p><blockquote>But we can use GET as well, here for sake for an example, I have used POST.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*EaAW2K71O5o3zSXX1Wel7Q.png" /><figcaption>Basic structure of communication.</figcaption></figure><h3>Q: But how to make a POST request.</h3><p>For this fetch API (<a href="https://facebook.github.io/react-native/docs/network.html">https://facebook.github.io/react-native/docs/network.html</a>)provided by react-native comes to rescue.</p><p>It is very easy to use and can be used to make all kinds of requests, GET, POST etc. The basic structure of the fetch request looks like following:</p><pre>fetch(&#39;https://mywebsite.com/endpoint/&#39;, {<br>  method: &#39;POST&#39;,<br>  headers: {<br>    Accept: &#39;application/json&#39;,<br>    &#39;Content-Type&#39;: &#39;application/json&#39;,<br>  },<br>  body: JSON.stringify({<br>    firstParam: &#39;yourValue&#39;,<br>    secondParam: &#39;yourOtherValue&#39;,<br>  }),<br>}).then((response) =&gt; response.json())<br>    .then((responseJson) =&gt; {<br>      return responseJson.movies;<br>    })<br>    .catch((error) =&gt; {<br>      console.error(error);<br>    });</pre><h3>Q: What is above code, I don’t get it</h3><p>The above code has a basic fetch process followed by parsing JSON response and then doing something with the response.</p><p>The fetch method has ‘method’ parameter to specify type of request, here its ‘POST’ as described above why.</p><p>The headers contains the headers of the request you are making, this may contain Authorization token etc, here it has content-type and accept type.</p><p>The body contains the main part of request in which we will be sending our query data as parameter.</p><p>.then() is used as function which will execute after the fetch request completes.</p><p>first then parses the json data from the response of the server.</p><p>Second then plays with the parsed json data and performs some function.</p><p>Then there is a catch block which catches any error.</p><h3>Q: Enough of theory can you give an example</h3><p>Sure why not, lets say we want to build a basic application which fetches some data using the Hasura data API.</p><p>For doing so make, we will use the /v1/query/ endpoint provided by Hasura, in which two tables articles and authors are already provided, so lets select author name from it.</p><p>You can use the hasura api-console to generate body of request or write it yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGwvrURq1YDBadP8k2CCug.png" /></figure><p>The response of above request is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*GWPxkDqBk8LBT6bwOC__kQ.png" /></figure><p>Lets say we want to make an app, in which on click , An author name should be displayed by an alert box.</p><p>The code goes as follows</p><p>Also do not forget to change cluster name from “advance88” to your cluster name in following code.</p><pre>import React, { Component } from &#39;react&#39;;<br>import { TouchableOpacity, View, ActivityIndicator, Text, Alert} from &#39;react-native&#39;;<br>export default class App extends Component {<br>handlePress = async () =&gt; {<br>  fetch(&#39;<a href="https://data.advance88.hasura-app.io/v1/query&#39;">https://data.advance88.hasura-app.io/v1/query&#39;</a>, {<br>      method: &#39;POST&#39;,<br>      headers: {<br>        &#39;Content-Type&#39;: &#39;application/json&#39;,<br>      },<br>      body: JSON.stringify({<br>          &quot;type&quot;: &quot;select&quot;,<br>    &quot;args&quot;: {<br>        &quot;table&quot;: &quot;author&quot;,<br>        &quot;columns&quot;: [<br>            &quot;name&quot;<br>        ],<br>        &quot;limit&quot;: &quot;1&quot;<br>    }<br>      })</pre><pre>})<br>    .then((response) =&gt; response.json())<br>    .then((responseJson) =&gt; {<br> Alert.alert(&quot;Author name at 0th index:  &quot; + responseJson[0].name);<br>    })<br>    .catch((error) =&gt; {<br>      console.error(error);<br>    });<br>}<br>  render(){<br>  return(<br>   &lt;View style={{paddingTop: 50, paddingLeft: 50 }}&gt;<br>   &lt;Text&gt; Some other text &lt;/Text&gt;<br>    &lt;Text&gt; Some other text &lt;/Text&gt;<br>    &lt;TouchableOpacity onPress={this.handlePress.bind(this)}&gt;<br>     &lt;Text style={{paddingTop: 50, paddingLeft: 50, color: &#39;#FF0000&#39;}}&gt; Click me to see the name &lt;/Text&gt;<br>    &lt;/TouchableOpacity&gt;</pre><pre>&lt;/View&gt; <br>  );<br>}<br>}</pre><p>Here is the start screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*8fZn5CFFtpL7cWW8UAiovA.png" /></figure><p>When the text is clicked:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*zu_vAA2qeF8CfADvSok6HA.png" /></figure><p>Congratulations you have made your first fetch api in react-native.</p><p>Similarly various endpoints can be configured in your server to play with json data.</p><p>Happy coding :)</p><p>Divyanshu Kumar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aeb83dfb428" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/integrating-react-native-apps-with-back-end-code-using-fetch-api-8aeb83dfb428">Integrating React-native apps with back-end code using fetch API</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving “unable to load script error index.js error” in react-native app]]></title>
            <link>https://medium.com/@divyanshukumarg/solving-unable-to-load-script-error-index-android-js-error-in-react-native-app-4db58b8b6a4c?source=rss-a58e7b5a4423------2</link>
            <guid isPermaLink="false">https://medium.com/p/4db58b8b6a4c</guid>
            <category><![CDATA[babel-preset-expo]]></category>
            <category><![CDATA[load-script-error]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Tue, 16 Jan 2018 19:44:26 GMT</pubDate>
            <atom:updated>2018-01-16T20:35:10.221Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a very irritating error and occurs when you run your code on android devices or android-emulator. Also a small point to be seen, this error seems to be be present only with react-native cli and not the conventional CRNA.</p><h3><strong>Solution:</strong></h3><ol><li>(in project directory) mkdir android/app/src/main/assets</li><li>react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res</li><li>react-native run-android</li></ol><p>The above should solve the problem, but the same has to be run every time after modification of code, to reflect changes.</p><p>But when we run the same next time it gives an error as follows:</p><p>Loading dependency graph, done.</p><p>TransformError: /home/dvk/&lt;path of project&gt;/index.android.js: Couldn’t find preset “babel-preset-expo” relative to directory “/home/dvk/&lt;path of project&gt;”</p><p>To overcome this just run following command:</p><p>npm install babel-preset-expo --save</p><p>This removes the error completely.</p><p>Happy developing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4db58b8b6a4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Hasura hello-react-native without Expo XDE]]></title>
            <link>https://medium.com/@divyanshukumarg/using-hasura-hello-react-native-without-expo-xde-8fe7dca68a8f?source=rss-a58e7b5a4423------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fe7dca68a8f</guid>
            <category><![CDATA[without-expo-xde]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[hello-react-native]]></category>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Thu, 21 Dec 2017 18:15:21 GMT</pubDate>
            <atom:updated>2017-12-21T18:15:21.395Z</atom:updated>
            <content:encoded><![CDATA[<p>Not all of us are very fond of using Expo XDE. Actually I use Ubuntu 16.04 and after installing the XDE, it gave me quite a few errors to connect to my adb server.</p><p>But I tend to like the create-react-native-app(CRNA) or command line interface for expo, which just involves following steps:</p><ol><li>cd &lt;Path to your project&gt;</li><li>sudo yarn start ( or npm start)</li></ol><p>Then a qr code displays which we can scan on our device or press a for android emulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*EqiSkcH41zzEQaDSHmICzw.png" /></figure><p>This screen is much familiar to me, so to get the same experience with the Hasura hello-react-native project follow the following steps.</p><h3>STEPS FOR MODIFICATION</h3><ol><li>Navigate to react-native folder of hello-react-native folder</li><li>Open and edit app.json (Editing sdk version to be 23.0.0), then save it.</li></ol><blockquote>Initially</blockquote><p>{<br> “expo”: {<br> “name”: “blog”,<br> “description”: “An empty new project”,<br> “slug”: “blog”,<br> “privacy”: “public”,<br> “sdkVersion”: “22.0.0”,<br> “version”: “1.0.0”,<br> “orientation”: “portrait”,<br> “primaryColor”: “#cccccc”,<br> “icon”: “./assets/icon.png”,<br> “splash”: {<br> “image”: “./assets/splash.png”,<br> “resizeMode”: “contain”,<br> “backgroundColor”: “#ffffff”<br> },<br> “packagerOpts”: {<br> “assetExts”: [“ttf”, “mp4”]<br> },<br> “ios”: {<br> “supportsTablet”: true<br> }<br> }<br>}</p><blockquote>After modification</blockquote><p>{<br> “expo”: {<br> “name”: “blog”,<br> “description”: “An empty new project”,<br> “slug”: “blog”,<br> “privacy”: “public”,<br> “sdkVersion”: “23.0.0”,<br> “version”: “1.0.0”,<br> “orientation”: “portrait”,<br> “primaryColor”: “#cccccc”,<br> “icon”: “./assets/icon.png”,<br> “splash”: {<br> “image”: “./assets/splash.png”,<br> “resizeMode”: “contain”,<br> “backgroundColor”: “#ffffff”<br> },<br> “packagerOpts”: {<br> “assetExts”: [“ttf”, “mp4”]<br> },<br> “ios”: {<br> “supportsTablet”: true<br> }<br> }<br>}</p><p>3. Open package.json and edit it as follows</p><blockquote>Initially</blockquote><p>{<br> “name”: “blog”,<br> “version”: “0.0.0”,<br> “description”: “Hello Expo!”,<br> “author”: null,<br> “private”: true,<br> “main”: “node_modules/expo/AppEntry.js”,<br> “dependencies”: {<br> “<a href="http://twitter.com/expo/vector-icons">@expo/vector-icons</a>”: “⁶.2.0”,<br> “expo”: “²².0.0”,<br> “native-base”: “².3.3”,<br> “react”: “16.0.0-beta.5”,<br> “react-native”: “<a href="https://github.com/expo/react-native/archive/sdk-22.0.1.tar.gz">https://github.com/expo/react-native/archive/sdk-22.0.1.tar.gz</a>&quot;<br> }<br>}</p><blockquote>After editing</blockquote><p>{<br> “name”: “blog”,<br> “version”: “0.0.0”,<br> “description”: “Hello Expo!”,<br> “author”: null,<br> “private”: true,<br> “main”: “node_modules/expo/AppEntry.js”,<br> “devDependencies”: {<br> “react-native-scripts”: “1.8.1”,<br> “jest-expo”: “23.0.0”,<br> “react-test-renderer”: “16.0.0”<br> },<br> “scripts”: {<br> “start”: “react-native-scripts start”,<br> “eject”: “react-native-scripts eject”,<br> “android”: “react-native-scripts android”,<br> “ios”: “react-native-scripts ios”,<br> “test”: “node node_modules/jest/bin/jest.js — watch”<br> },<br> “jest”: {<br> “preset”: “jest-expo”<br> },<br> “dependencies”: {<br> “<a href="http://twitter.com/expo/vector-icons">@expo/vector-icons</a>”: “⁶.2.0”,<br> “expo”: “²³.0.4”,<br> “native-base”: “².3.3”,<br> “react”: “16.0.0-beta.5”,<br> “react-native”: “0.50.3”<br> }</p><p>}</p><p>3. Finally just run following command from your terminal in react-native folder</p><p># sudo rm -rf node_modules ( if you have already done npm install, so as to remove earlier versions)</p><p># npm install</p><p>4. Congratulations you are all set now just start yarn or npm and same interface like CRNA begins with same features as Hot reloading( my favorite) and other things. This removes the need to download and install Expo XDE for the hello-react-native project. Finally just run yarn or npm as follows:</p><p># sudo yarn start</p><blockquote>Outputs:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*pN6aOYUT3geUtOH6efT1qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*OAEc8cvPkfroj3H52xHAjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*FQDOfVrqAK_ADdUZZoej4Q.png" /></figure><p>Cheers, Happy developing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fe7dca68a8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install and use watchman on Ubuntu 16.04]]></title>
            <link>https://medium.com/@divyanshukumarg/how-to-install-and-use-watchman-on-ubuntu-16-04-932deae19de7?source=rss-a58e7b5a4423------2</link>
            <guid isPermaLink="false">https://medium.com/p/932deae19de7</guid>
            <category><![CDATA[watchman]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Wed, 06 Dec 2017 17:53:17 GMT</pubDate>
            <atom:updated>2017-12-06T17:53:17.913Z</atom:updated>
            <content:encoded><![CDATA[<p>Firstly we need to run following commands in terminal</p><p># sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool</p><p>Then we must run the following commands</p><p>#git clone <a href="https://github.com/facebook/watchman.git">https://github.com/facebook/watchman.git</a></p><p>#cd watchman/</p><p>#git checkout v4.9.0</p><p>#./autogen.sh</p><p># ./configure</p><p>#make</p><p># sudo make install</p><p>To use the watchman to watch over a particular folder we must use following command</p><p># watchman watch /path/to/directory/</p><p>If you like the above solution, please do follow me. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=932deae19de7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>