<?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 Francis Batista on Medium]]></title>
        <description><![CDATA[Stories by Francis Batista on Medium]]></description>
        <link>https://medium.com/@francisrod01?source=rss-6ad46e4c7b42------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KeNcg0bf5hu7qEJ1di7ERw.jpeg</url>
            <title>Stories by Francis Batista on Medium</title>
            <link>https://medium.com/@francisrod01?source=rss-6ad46e4c7b42------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:15:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@francisrod01/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[Angular Ecommerce template — Hands-on]]></title>
            <link>https://francisrod01.medium.com/angular-ecommerce-template-hands-on-c299e26aa51?source=rss-6ad46e4c7b42------2</link>
            <guid isPermaLink="false">https://medium.com/p/c299e26aa51</guid>
            <category><![CDATA[bootstrap-5]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[template]]></category>
            <category><![CDATA[fontawesome-5]]></category>
            <category><![CDATA[e-commerce-website-design]]></category>
            <dc:creator><![CDATA[Francis Batista]]></dc:creator>
            <pubDate>Mon, 08 Feb 2021 17:47:50 GMT</pubDate>
            <atom:updated>2021-02-08T17:47:50.646Z</atom:updated>
            <content:encoded><![CDATA[<h3>Angular Ecommerce template — <em>Hands-on</em></h3><p>You’ll learn how to create Angular modules from an HTML template</p><p><em>If you’re new in Angular, you may need to learn how to create a front-end website from scratch extracting the template from HTML files, Figma, Sketch or other tools.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QXUEub6A3RK6gDh0" /><figcaption>Photo by <a href="https://unsplash.com/@joshuafuller?utm_source=medium&amp;utm_medium=referral">Joshua Fuller</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>In this post</strong>, we’re going to get an HTML template from a blog I found on the internet. <strong>Note:</strong> <strong><em>the time I created this article, I was allowed to use its content.</em></strong></p><p>Source: <a href="https://therichpost.com/angular-11-bootstrap-4-5-ecommerce-template-free">Angular 11 Bootstrap 4.5 Ecommerce Template Free.</a></p><h4>Let’s get started with creating our Angular app</h4><p>Create a new angular app using thenpx command:</p><pre>npx @angular/cli new ng-commerce-app</pre><p>The CLI command line will ask you some questions about the new project you want to build. Answers it as below:</p><blockquote><strong>Do you want to enforce stricter type checking and stricter bundle budgets in the workspace? (y/N) <em>N</em></strong></blockquote><blockquote><strong>Would you like to add Angular routing? (y/N) <em>N</em></strong></blockquote><blockquote><strong>Which stylesheet format would you like to use? <em>Less [ </em></strong><a href="http://lesscss.org/"><strong><em>http://lesscss.org</em></strong></a></blockquote><p>Now let’s wait until the Angular CLI finishes it:</p><pre>CREATE ng-commerce-app/e2e/src/app.e2e-spec.ts (666 bytes)<br>CREATE ng-commerce-app/e2e/src/app.po.ts (274 bytes)<br>⠧ Installing packages (npm)…</pre><blockquote>I’m writing an article explaining the Angular projects structure. Stay tuned for it.</blockquote><p>If you go to <a href="https://therichpost.com/angular-learning/"><em>The Rich Post</em></a><em> blog</em>, you’ll get a zip file with the following files structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*HQSFkzQMOBzArLVL4gj3tQ.png" /><figcaption>e-shop.zip file</figcaption></figure><p>Now let’s use into our Angular application only what we need, the <strong>images</strong> and <strong>CSS</strong> folders, because we’re going to use Font Awesome official plugin for Angular. You can check it out here: <a href="https://fontawesome.com/how-to-use/on-the-web/using-with/angular"><em>Fontawesome with Angular</em></a>.</p><p>For now, our app structure looks like this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*2mEhUugAZUV4vtJfDbifvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*pTeMsFm_4CIs7o0b_ospNA.png" /><figcaption>Angular project structure</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3W95nx7ppdVPAUDU" /><figcaption>Photo by <a href="https://unsplash.com/@dissii?utm_source=medium&amp;utm_medium=referral">mahdis mousavi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The link that I provided says:</p><blockquote>Compatibility Heads Up!</blockquote><blockquote>If you are using Angular, you need the <a href="https://github.com/FortAwesome/angular-fontawesome">angular-fontawesome</a> package or Web Fonts with CSS.</blockquote><p>So let’s install it using the Angular CLI reference provided by package.json :</p><pre>npm run ng -- add @fortawesome/angular-fontawesome</pre><pre>&gt; ng-commerce-app@0.0.0 ng /home/user/angular-apps/ng-commerce-app<br>&gt; ng &quot;add @fortawesome/angular-fontawesome&quot;</pre><p>It will prompt you to choose which options do you want to install, let’s choose the free ones. <em>(To navigate between them, use the arrows up and down, then press SPACE to select one or more)</em>, then press ENTER to confirm.</p><pre>Installed packages for tooling via npm.<br>? Choose Font Awesome icon packages you would like to use: <br> ◉ Free Solid Icons<br> ◉ Free Regular Icons<br>❯◉ Free Brands Icons</pre><p>Now you have it installed in your Angular app and automatically imported in the app module. See it below:</p><pre>UPDATE package.json (1466 bytes)<br>UPDATE src/app/app.module.ts (407 bytes)<br>✔ Packages installed successfully.</pre><h4>Now it’s time to build the Ecommerce template</h4><p>So let’s see on VSCode how the e-commerce template in an HTML file looks like, I’ll put it side by side to better visualize it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3qKNkutBvXbAu7A9Hu7sQ.png" /><figcaption>The Angular e-commerce HTML template on VSCode</figcaption></figure><p>It has exactly <strong>315 lines</strong>, so we need to break this down into <strong>modules</strong> and <strong>components</strong>. Now we’re ready to do it!</p><p>I’ll be more straightforward and start it in the app.component.htmlfile.<br>At the end of this article the HTML template will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9spYIL29TAo_HiM0wJFQbA.png" /><figcaption>The app.component.html in the VSCode editor</figcaption></figure><p>The main template now is much better, but suddenly we’re covered by red lines into our template. That’s the components we need to create, so let’s do it.</p><p>Let’s create some components:</p><ul><li>A search form component: ng g c search-form</li><li>A widgets header component: ng g c widgets-header</li><li>A navbar component: ng g c nav-bar</li><li>A menu category component: ng g c menu-category</li><li>A products list component: ng g c products-list</li><li>A download demo component: ng g c download-demo</li><li>A footer component: ng g c footer</li></ul><p>At the time I was writing this article, the original HTML looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*iT92UHBbO4G8RBrEycaSPQ.png" /><figcaption>The template after divided into Angular components</figcaption></figure><p>Suddenly the author of <em>The Rich Post</em> updated the template and now it has <strong><em>almost 1,000 lines</em></strong>. 😮 ….We’ll continue to build it anyway.</p><p>After making all the necessary changes, our template will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*6j5FXlsx7zvX5PVe_LsJ8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*iM_1xAimemOya3x1PoYT_A.png" /><figcaption>Final code of Angular 11 e-commerce template using bootstrap 5.4</figcaption></figure><p>In case you want to show again the “Download app demo text”, uncomment the app-download-demo component in the main HTML template.</p><h4>Dealing with the imported files in the index.html file</h4><p>Have a look at the index.html file the original template provides:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*FFSZFMQq1pWWCDPTCbL0eA.png" /><figcaption>Screenshot of the index.html provided by The Rich Post blog</figcaption></figure><p>We’re going to use it as <strong>Angular modules</strong>, so let’s do some changes:</p><ul><li>Copy the content of theassets/css/ui.css file and paste into thestyle.less file. <em>(Comment the </em><em>ui.css in the index.html file)</em></li><li>Copy the content of the assets/css/responsive.css file and paste into a <strong>new</strong> responsive.less file. <em>(Comment the </em><em>responsive.css in the index file)</em></li></ul><p>In the angular.json file, add the newer file into styles brackets.</p><pre>&quot;assets&quot;: [<br>  &quot;src/favicon.ico&quot;,<br>  &quot;src/assets&quot;<br>],<br>&quot;styles&quot;: [<br>  &quot;src/styles.less&quot;,<br>  &quot;src/responsive.less&quot;  &lt;--- here<br>],</pre><h4>Using Bootstrap 4 into Angular applications</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IuQrwXBENRBv0JHQ" /><figcaption>Photo by <a href="https://unsplash.com/@keilahoetzel?utm_source=medium&amp;utm_medium=referral">Keila Hötzel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To use <strong>Bootstrap</strong> in our Angular apps using the power of Angular <strong>ng CLI</strong>, use it as ng-bootstrap instead of importing CSS files into your index.htmlfile directly. All you need to get started is mentioned on the <strong>ng-bootstrap</strong> webpage:</p><p><a href="https://ng-bootstrap.github.io/">Angular powered Bootstrap</a></p><p>It’s time to use Bootstrap and fix the menus and carousel of images.<br>To do that just provide the correct Angular directives in our app template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gOV72xZj8GcYqp9bU4z1Yw.png" /><figcaption>screenshot of Bootstrap dropdown menu changes we must do</figcaption></figure><p>Do the same for carousel Boostrap component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LNU1eh6Ouu1-jp82M1rnxA.png" /><figcaption>screenshot of Bootstrap carousel changes we must do</figcaption></figure><h4>Using FontAwesome into Angular applications</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*coBG7gCaJ3SDGBMs" /><figcaption>Photo by <a href="https://unsplash.com/@jeroendenotter?utm_source=medium&amp;utm_medium=referral">Jeroen den Otter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Now we have to fix the icons in our template.</p><pre>Failed to load resource: the server responded with a status of 404 (Not Found)<br>fa-brands-400.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)<br>fa-solid-900.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)<br>fa-brands-400.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)<br>fa-solid-900.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)<br>fa-brands-400.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*unhcr3JMNAyMzr-dzrY5wQ.png" /><figcaption>Screenshot of the current template with font errors</figcaption></figure><p>We’re going to use angular-fontawesome package.</p><p><a href="https://www.npmjs.com/package/@fortawesome/angular-fontawesome">@fortawesome/angular-fontawesome</a></p><p>Follow the instructions mentioned in the package’s page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yqeXJCq6FngeGGp8MRS5EA.png" /><figcaption>Example of usage for the angular-fontawesome package</figcaption></figure><p>Do the same for the widgets-header component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pi1MasmGpF-2ImuqG6R4RQ.png" /><figcaption>Screenshot of the widgets-header using angular-fontawesome directives</figcaption></figure><p>Do the same for the subscribe form and social media in the footer.<br>After the appropriate changes, our Angular template will be like this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ovthV121Vfbc34ijfLLpUA.png" /><figcaption>screenshot of the final Angular e-commerce template</figcaption></figure><p>The final code details the creation of the e-commerce template in the Angular app.</p><p><a href="https://github.com/francisrod01/ng-commerce-app">francisrod01/ng-commerce-app</a></p><p>I hope you enjoy this hands-on. Any questions, don’t hesitate to ask me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c299e26aa51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preparing your React app before deploying with CI/CD]]></title>
            <link>https://francisrod01.medium.com/preparing-your-react-app-before-deploying-with-ci-cd-5bf56a29e632?source=rss-6ad46e4c7b42------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bf56a29e632</guid>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Francis Batista]]></dc:creator>
            <pubDate>Thu, 05 Dec 2019 14:51:20 GMT</pubDate>
            <atom:updated>2019-12-22T16:11:23.025Z</atom:updated>
            <content:encoded><![CDATA[<h4>For those who care about development planning</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oO-1ewF5qZmkAjAc" /><figcaption>Photo by <a href="https://unsplash.com/@sapegin?utm_source=medium&amp;utm_medium=referral">Artem Sapegin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When you start planning the process of developing a new project, it’s important to consider the settings that you need to set up your application, and when it’s time to deploy it, you run into a problem that can affect the entire process:</p><p><em>Every time you need to set up this work space again, perhaps to add someone to your development team, some of your configuration steps can be missed, you need to upload raw environment files to the server or run deployment scripts which can be forgotten by their sequence, because it’s written only in the README file.</em></p><p>Thinking about improvements you read something about <em>Continuous Integration</em> (CI) and decided to introduce it to your team. After that, all you have to do is worry about new features or bug fixes for <em>Continuous Delivery</em> (CD).</p><p>In case you want to read more about CI/CD before continue:</p><p><a href="https://start.jcolemorrison.com/a-practical-approach-to-cicd-for-developers/">A Practical Approach to CI/CD for Developers</a></p><p>Before talking about CI/CD setup, you need to know a few things about it.</p><h3><strong>My motivation to write an article about it</strong></h3><p>I chose <strong><em>Firebase</em></strong> to start this article because it can be integrated with a new React app easily without paying anything, nor waiting for an approval process to start using cloud resources. In case you want to know more about Firebase: <a href="https://firebase.google.com/"><em>https://firebase.google.com</em></a></p><blockquote>If you don’t use Firebase…<br>You can continue reading it as well.</blockquote><p>There are many articles on the internet talking about CI/CD but I’ve never seen just one worry about your code before this development step.</p><blockquote>So here I am to bring this caution to you.<br>Shall we start it?</blockquote><h4><strong>1. Pay attention to the packages version</strong></h4><p>When we install a new package it’s common to use it in the latest version. For now on you’ll be certain to use a specific version in the install step. It will prevent the installation of packages that are incompatible with the ones the project has used so far.</p><pre>~$ npm i <strong>package</strong>@<strong>version</strong></pre><p>or if you prefer using yarn:</p><pre>~$ yarn add <strong>package</strong>@<strong>version</strong></pre><figure><img alt="react-scripts package version screenshot" src="https://cdn-images-1.medium.com/max/786/1*6q1TIpsfZrsaD1fDRF54Qw.png" /><figcaption>react-scripts packages version</figcaption></figure><h4><strong>2. Put all your app settings in environment variables</strong></h4><p>If you’re coding a new project it’s a good practice to bring the app settings as a global configuration. First you should create a config file with app settings, such as:</p><ul><li>Api endpoint url</li><li>Integration tokens <em>(i.e: Facebook app ID, Google Photos key, Analytics, AWS SDK, Github)</em></li><li>Firebase settings</li><li>Storage bucket names</li><li>Other Api keys</li></ul><p><strong>Note:</strong> In cases that you need to pass sensitive values, such as <em>secret tokens</em> for authentication or <em>database connection</em>, it’s recommended to do this on the <em>server side</em>.</p><p>In case you want to read more about Environment Variables in React:</p><p><a href="https://medium.com/@trekinbami/using-environment-variables-in-react-6b0a99d83cf5">Using environment variables in React</a></p><h4><strong>3. Take advantage of npm scripts</strong></h4><p>That’s not an obligation, but it’s still good practice using npm scripts instead of writing them directly to the YML file.</p><p>In case you want to read more about Npm scripts:</p><p><a href="https://www.tutorialdocs.com/article/npm-scripts-tutorial.html">Npm Scripts Tutorial In 10 Minutes</a></p><h4><strong>4. Start running <em>eslint</em> in your code</strong></h4><p>Start using <strong><em>eslint</em></strong> to analyze your code and fix problematic JavaScript patterns. This is part of good development practices and is also a Firebase recommendation.</p><p>In case you want to read more about ESLint:</p><p><a href="https://eslint.org/">Find and fix problems in your JavaScript code - ESLint - Pluggable JavaScript Linter</a></p><h4><strong>5. Remove all yellow warnings before deploy your project</strong></h4><p>The React app will fire yellow warnings when something is running outside React specifications. You may not have noticed but React has <em>eslint</em> and its <em>plugins</em> as dependencies, so it’s a good development practice solving all yellow warnings before deploy your application. Also because most CI servers will automatically treat warnings as errors and the compile will fail.</p><figure><img alt="treating warnings as errors — screenshot" src="https://cdn-images-1.medium.com/max/549/1*OWqvLH9V7-t1bch3UcS10g.png" /><figcaption>screenshot — treating warnings as errors</figcaption></figure><h4><strong>6. Test your app in local machine before deploy it</strong></h4><p>Take advantage of testing! It’s my advice to avoid noticing or letting users reporting errors in your application. The CI/CD requires at least one test to be performed before deploying.</p><figure><img alt="no tests found — screenshot" src="https://cdn-images-1.medium.com/max/580/1*_p57KVarLdNckh0iXDAl3g.png" /><figcaption>screenshot — no tests found</figcaption></figure><p>In case you want to read more about Running Tests in React apps:</p><p><a href="https://create-react-app.dev/docs/running-tests/">Running Tests | Create React App</a></p><h4><strong>7. Commit &amp; push the code before sending it to deploy</strong></h4><p>In this time, you’ll start using Continuous Integration in your app. Basically every time you push the code to its repository, the CI servers will clone a new version of it, change to a specified branch and run the scripts according to your demand. All this process is mentioned in the YML file in your project.</p><h3><strong>Firebase authentication error, let’s fix it</strong></h3><p>If you get a “<em>Authorization failed</em>” error in the <strong><em>deploy</em></strong> stage like this:</p><pre>Error: Authorization failed. This account is missing the following required permissions on project bestamericas-dashboard-staging:</pre><pre>  firebase.projects.get<br>  firebasehosting.sites.update<br>  ERROR: Job failed: exit code 1</pre><p>..it could be related to one of three reasons below:</p><ul><li>check your Firebase token, maybe you should generate another one in your command line</li><li>check the correct firebase deploy command</li><li>If you use multi projects, you should set up its names in the .firebaserc file <strong><em>with its alias</em></strong></li></ul><p>You should store your <em>Firebase token</em> and <em>project alias</em> as <em>environment variables</em> and use it in the deploy stage. For this scenario, the correct <em>npm deploy script</em> will be:</p><pre>~$ firebase deploy -P $FIREBASE_PROJECT — token $FIREBASE_TOKEN — only hosting</pre><p>Where FIREBASE_PROJECT must be the project alias defined in your .firebaserc file.</p><h3><strong>React environment variables</strong></h3><p>Make sure to pass all app environment variables starting with REACT_APP<strong>.</strong></p><p>I faced some problems using Gitlab because in the <em>build</em> stage I didn’t inform the environment name, so the Gitlab CI job couldn’t find the correct environments.</p><figure><img alt="build screenshot configured inthe .gitlab-cli.yml file" src="https://cdn-images-1.medium.com/max/323/1*X3STQJs2Av-zndToaqqzOQ.png" /><figcaption>screenshot — build configured in the .gitlab-cli.yml file</figcaption></figure><blockquote>Now that’s all okay, you should be able to deploy your React apps appropriately.</blockquote><p>In case you are not familiar with Ci/CD yet, I’ll give you some link tutorials about this topic:</p><ul><li><a href="https://codeburst.io/how-to-deploy-on-firebase-hosting-with-circleci-f5fa58bce01d">How to deploy on Firebase hosting with CircleCI</a></li><li><a href="https://stackshare.io/circleci/automatically-deploy-a-gatsby-site-to-firebase-hosting">Automatically deploy a Gatsby site to Firebase Hosting - CircleCI Tech Stack</a></li><li><a href="https://docs.aws.amazon.com/amplify/latest/userguide/getting-started.html">Getting started with existing code</a></li><li><a href="https://alanedwardes.com/blog/posts/react-ci-cd-using-aws-lambda/">Building and Deploying a React App Using AWS Lambda</a></li><li><a href="https://medium.com/chotot/nextjs-deployment-pipeline-on-s3-with-gitlab-ci-4afc0045c3fd">NextJS deployment pipeline on S3 with Gitlab-CI</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bf56a29e632" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quer viajar para Argentina?]]></title>
            <link>https://medium.com/bestamericas-travel/quer-viajar-para-argentina-a340ce764413?source=rss-6ad46e4c7b42------2</link>
            <guid isPermaLink="false">https://medium.com/p/a340ce764413</guid>
            <category><![CDATA[mendoza]]></category>
            <category><![CDATA[argentina]]></category>
            <category><![CDATA[dicas-de-viagem]]></category>
            <category><![CDATA[latin-america]]></category>
            <category><![CDATA[viajar-barato]]></category>
            <dc:creator><![CDATA[Francis Batista]]></dc:creator>
            <pubDate>Wed, 08 May 2019 00:04:31 GMT</pubDate>
            <atom:updated>2019-12-14T20:11:43.131Z</atom:updated>
            <content:encoded><![CDATA[<h3>Informações para viajar sem medo e sem estresse</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*zmX2qUKpHZC72udC-fa9aw.png" /><figcaption><strong>Foto:</strong> ShutterStock — <em>Laguna del Caminante</em> en Tierra del Fuego National Park, Ushuaia — Argentina</figcaption></figure><blockquote>Um maravilhoso país com mix cultural de índios, espanhóis e italianos</blockquote><p>Talvez você não saiba das vantagens de viajar a um país latino, além do clima e cultura compartilhados. Mas há uma diferença tremenda de <strong><em>custo vs. benefício</em></strong>. O valor total da viagem pode chegar a 3 vezes menos, em relação a uma viagem nacional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MvFnNg6EBndRgKYo.png" /><figcaption><strong>Foto:</strong> Bandeira da Argentina / Reprodução</figcaption></figure><h3>Acompanhe abaixo as principais recomendações e dicas de viagem pelo país</h3><h4>Documentação mínima para turistas de países membros do Mercosul</h4><p>Há relação de direitos e facilidades entre Brasil e Argentina. Leia mais sobre o Mercosul na <a href="http://www2.planalto.gov.br/mandatomicheltemer/acompanhe-planalto/noticias/2017/07/entenda-como-funciona-o-mercosul-que-se-reune-nesta-semana"><em>página oficial do Planalto</em></a>.</p><p>Uma das facilidades é na documentação de ingresso ao país. Você não precisa de visto, então tecnicamente, não precisa de passaporte. Viaje apenas com o seu documento <strong><em>RG</em></strong> <em>(Registro Geral)</em>. Lembre-se, nosso documento equivale ao <strong>DNI</strong> no exterior <em>(Documento Nacional de Identificação)</em>.</p><p>Para mais informações <em>sobre documentação</em>, acesse a página do Ministério de Relações Exteriores — <a href="http://www.portalconsular.itamaraty.gov.br/seu-destino/argentina"><em>Itamarati — destino Argentina</em></a></p><h4>Opções de voos a <em>Buenos Aires</em> ou Mendoza</h4><p>Abaixo uma breve descrição do que você precisa saber sobre as duas regiões.</p><p><strong>Aeroporto Internacional Ministro Pistarini de Ezeiza (EZE):</strong></p><ul><li>Localizado em Buenos Aires, capital do país</li><li>Voos diretos e conexões em <em>Belo Horizonte</em> pela <em>Azul</em> e <em>Aerolíneas Argentinas</em></li><li>Voos diretos e conexões em <em>Curitiba</em> pela <em>Aerolíneas Argentinas</em></li><li>Conexões a partir de <em>São Paulo (SP)</em> pela <em>GOL Airlines</em></li><li>Atualmente é a opção mais rápida para os brasileiros</li><li>Conecta você facilmente a outras províncias</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZU2MLy_Jno0JKDI40vVvbg.jpeg" /><figcaption><strong>Foto:</strong> <em>Puerto Madero — Buenos Aires / aguiarbuenosaires.com</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4_EwIz19V3G4a-qE.jpg" /><figcaption><strong>Foto:</strong> <em>infohostels.com / Reprodução</em></figcaption></figure><p>Para mais informações sobre vôos e transportes, consulte:<br><a href="https://www.aeropuertos.net/aeropuerto-internacional-ministro-pistarini/"><em>Aeropuerto Internacional Ministro Pistarini de Ezeiza (EZE)</em></a></p><p><strong>Aeroporto Internacional Governor Francisco Gabrielli (MDZ):</strong></p><ul><li>Conhecido como <strong><em>El Plumerillo Airport (MDZ)</em></strong></li><li>As melhores conexões estão em <em>São Paulo (SP)</em> pela <em>GOL Airlines</em></li><li>Opção <em>mais barata</em> que chegar por Buenos Aires</li><li>Localizado em <strong>Mendoza</strong> capital <em>(capital da província de Mendoza)</em></li><li>Região do melhor vinho, melhores Bodegas, montanhas, escalada e atrativos turísticos naturais</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*N7491iohrigpbfMJ.jpg" /><figcaption><strong>Foto:</strong> <a href="https://foursquare.com/user/32842637">Carolina / Foursquare</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*REF2oLvwr1zYBTW5.jpg" /><figcaption><strong>Foto:</strong> <em>Enforex / Reprodução</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-0sJY7pdO837JAiT.jpg" /><figcaption><strong>Foto:</strong> <em>G Adventures / Reprodução</em></figcaption></figure><p>Para mais informações sobre vôos e transportes, consulte:<br><a href="https://www.aeropuertos.net/aeropuerto-internacional-de-mendoza-el-plumerillo/"><em>Aeropuerto Internacional de Mendoza El Plumerillo (MDZ)</em></a></p><h4>Você pode levar Real, Dólar ou Euro</h4><p>Na verdade lá você vai usar o <em>Peso Argentino</em>, então de qualquer maneira, terá que realizar o <a href="https://www.currency-calc.com/BRL_ARS">câmbio de moeda</a> antes de começar a gastar.</p><p>Mas se você preferir, realize a troca de moeda por <strong>Dólar</strong> em aeroportos brasileiros antes de sua viagem, ou você pode realizar o câmbio nos aeroportos argentinos.</p><blockquote>Na Argentina, o lugar mais recomendado de todos é o <strong>Banco de la Nación</strong>, mas dependendo do dia, estará muito cheio, então você pode ir a uma agência bancária argentina realizar o câmbio, sem problemas.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*LZ5iLXy2Uo5M_CVS.jpg" /><figcaption><strong>Foto:</strong> v<em>iajenaviagem.com / Reprodução</em></figcaption></figure><h4>Saiba o que é permitido levar na bagagem</h4><blockquote>Muita atenção aos itens de equipagem antes da viagem, pois eles poderão ser descartados, caso descumpram as exigências da alfândega argentina. No geral, objetos pontiagudos são considerados potenciais armas e serão descartados antes do embarque.</blockquote><ul><li>Você pode levar normalmente bocadilhos, chocolates, caramelos, doces, bolachas, etc. <em>(leve em maleta de mão ou de despache, caso viaje em avião)</em>.</li><li>água, gel, desodorantes, lápis labial, pasta de dente (podem ser levados à mão com limite de 100ml cada). Consulte as regras de acordo a companhia aérea.</li><li>licores, tequila, Vodka, Whisky, etc, — sobre limite e dosagem, c<em>onsulte as regras de acordo a companhia aérea. (no caso de dúvidas, leve em maleta de despache).</em></li><li>Shampoo, sabonete, cremes, e utensilhos de higiene pessoal <em>(leve em maleta de despache, caso viaje em avião)</em></li><li>Guarda-chuva ou sombrinha <em>(leve em maleta de despache, caso viaje em avião)</em></li><li>Comprimidos para enjoo, dor de cabeça, resfriados, mal-estar <em>(todos livres de prescrição médica)</em></li><li>Na <em>maleta de mão </em>pode-se levar material didático, tecnológico e documentos, mas atenção, não é permitida nenhuma ferramenta de manutenção com ponta <em>(ex: chaves de manutenção de computador)</em>. Peso máximo de 10 kg <em>(essa regra está em discussão no Planalto)</em></li><li><strong>Aéreas brasileiras:</strong> Maleta de despache com peso máximo de 23 Kg. Peso extra será cobrado a parte. O peso excedente é caríssimo! Consulte a sua companhia aérea para mais informações. <em>(Essa regra está em discussão no Planalto)</em></li></ul><h4>Permitido embarque de animais de estimação</h4><p>Animais de estimação são permitidos, desde que estejam em <em>gaiola</em> e possuam as <em>vacinas básicas</em> <em>(antiparasitas, antirrábica, etc)</em>.</p><p><em>Animais permitidos:</em> coelhos, gatos, cachorros e demais animais domésticos vacinados.</p><p>V<em>iagem de ônibus:</em> verifique se a empresa da excursão permite o transporte de animais <em>(em sua gaiola)</em> dentro do despache do ônibus.</p><p><em>Viagem de avião:</em> verifique se o vôo aceita animais de estimação, tipos de gaiola e quais os <em>encargos extras</em>.</p><h4>Saiba o que está proibido levar</h4><p>Tanto por terra quanto por avião, está proibido o ingresso de:</p><ul><li>Todo tipo de fruta, vegetal, legumes<em>, </em>doces caseiros<em> (tudo que se pudre ou produz mau cheiro)</em></li><li>O ÓBVIO: drogas, entorpecentes, alucinógenos, armas <em>sem registro ou permissão de porte</em>, explosivos</li><li><em>Elementos perigosos:</em> inflamáveis, venenos, ácidos, gás comprimido</li><li>Nenhum produto de origem animal, <em>carnes</em> ou <em>peixes</em> <em>(mesmo que embalado a vácuo)</em></li></ul><h4>Saiba o que está permitido, sob autorização prévia</h4><ul><li><em>Medicamentos de prescrição médica:</em><br>Aqui muita atenção! Eu verifiquei no site do Governo argentino e, nesses casos, você terá que apresentar uma receita médica traduzida. Para assegurar a autenticidade da receita, recomendo o serviço de tradução oficial. <em>(Encontre o serviço em pesquisas na internet)</em></li><li>Se você vai viajar com medicamentos que precisam ser mantidos refrigerados, também deve contatar a companhia aérea e solicitar assistência especial pelo menos 72 horas antes do embarque.</li><li><em>viagem em avião:</em> Se você precisa levar insulina ou algo similar a bordo, deve solicitar autorização junto à companhia aérea e mencionar a necessidade dos cuidados com agulhas e seu período de tempo.</li></ul><h3>Informações políticas</h3><ul><li>O país é dividido em <strong><em>Províncias</em></strong>, e não por <strong><em>Estados</em></strong></li><li>As províncias são administradas por Deputados, e não por Governadores</li><li>As administrações públicas respondem diretamente ao Governo Federal</li><li>O Governo administra diretamente toda a manutenção pública do país</li><li>Os recursos financeiros do turismo são direcionados à manutenção da infraestrutura das cidades</li></ul><h3><strong><em>Dica do Chip de celular</em></strong></h3><h4>O seu chip nacional só vai funcionar seguindo a dica:</h4><p>A sua operadora precisa te ajudar a configurar o <em>roaming</em> ou <em>proxy</em> no seu aparelho antes de embarcar ao país. Caso não realizada esta configuração, você ficará sem comunicação no país vizinho.</p><blockquote><em>Isso aconteceu comigo e fiquei muito chateado, pois eu havia solicitado o desbloqueio de Roaming com a Vivo, mas na verdade, a configuração teria que ser feita em meu aparelho e por mim mesmo, mas a operadora não me disse nada sobre o assunto.</em></blockquote><blockquote><em>No final das contas… eu tive que pagar R$ 10,00 por uma chamada internacional para a operadora no Brasil, através de uma cabine telefônica, só para configurar o proxy da operadora e, assim, utilizar a rede da Movistar, parceira comercial Telefónica na América Latina.</em></blockquote><h3>Dicas especiais e culturais</h3><ul><li>Tenha sempre respeito e educação</li><li>Wifi gratuito nos principais pontos turísticos</li><li>Local seguro para viajar sozinho</li><li>Transporte público eficiente, também há opções como <em>Uber</em>, <em>Taxi</em> e <em>aluguel de veículo</em> ou <em>excursão</em></li><li>As rodovias são limpas, trânsito tranquilo</li></ul><h4><strong>Não tire fotos no interior de edifícios públicos</strong></h4><p><em>Curiosidade:</em> No Brasil não tem problema algum em tirar fotos de locais turísticos, se você está do lado de fora das instalações públicas.</p><blockquote><em>Eu queria ter recebido esse aviso antes de tirar uma foto de recordação do </em>Banco de La Nación<em> no aeroporto. Logo veio um senhor, fiscal do aeroporto, abordou-me a gritos dizendo que não é permitido tirar fotos no aeroporto. Também descobri outro dia, comprando em supermercado expresso, que na Argentina não permitem tirarmos fotos dos produtos. </em>(Então se você tiver problema de cálculo de conversão de moeda, não pense em enviar fotos via WhatsApp para seu amigo te ajudar)</blockquote><h4><strong>Temperaturas variadas a todos os gostos</strong></h4><p>Leve roupas de acordo com a estação que você for. Não pense que é só na Europa que você congela de frio. No inverno, as temperaturas podem chegar abaixo de 0ºC. A mesma coisa ao verão, temperaturas de até 30ºC.</p><h4>Faça passeio de bicicletas nas cidades mais populares</h4><p>Em Buenos Aires há <strong>ciclovias</strong> nas principais avenidas. Nas demais regiões, o trânsito não é intenso, então a cultura local é andar de bicicleta pelas ruas ou acostamentos das estradas.</p><h4>As principais Bodegas aceitam visitas de turistas</h4><p>Apesar de não ser uma atividade turística comum no país, algumas das melhores bodegas realizam passeios turísticos, com direito a vinho no final.</p><h4>Cidades populares possuem Direções de turismo</h4><p>Se mesmo assim, você quer alguma informação específica sobre o seu destino, recomendo visitar a direção de turismo da cidade.</p><h4><strong>Você vai aprender a dançar Bachata ou Salsa</strong></h4><p>Tive uma boa experiência em aula gratuita de <a href="https://www.youtube.com/watch?v=CZOstFHC4gw&amp;t=1s"><strong><em>Los Hermanos Colombatti</em></strong></a> em <em>San Rafael, Mendoza</em>.</p><h4><strong>Você fará algum amigo(a) argentino(a)</strong></h4><p>No avião de volta ao Brasil, fiz amizade com dois biólogos argentinos que estavam à caminho ao Rio de Janeiro.</p><h4><strong>Variação de Espanhol latino</strong></h4><p>Mesmo que você fale uma variação do espanhol, ou espanhol da Espanha, você não terá problemas ao se comunicar.</p><h4>Turista brasileiro: Ao chegar, confira o que você encontrará</h4><ul><li><strong>Hospedagem mais barata que nacional<br></strong>Eu já cheguei a encontrar <em>Airbnb</em> e <em>Hostel</em> em Buenos Aires muito mais barato que em Curitiba, Floripa ou Fortaleza.</li><li><strong>Eles adoram brasileiros<br></strong>Talvez você não saiba disso, mas os argentinos adoram os brasileiros. Eu me surprendi ao frequentar edifícios públicos e sair de lá conversando sobre viagens e piadas de futebol com os funcionários.</li><li><strong>Eles conhecem nossos problemas sociais<br></strong>Os argentinos conhecem nossos problemas sociais, como tráfico de drogas, falta de segurança, alta corrupção e desmatamento da Amazônia. Baseando-se nisso, naturalmente as pessoas buscam refletir o melhor de sí ao próximo e dos serviços aos turistas, principalmente aos queridos brasileiros.</li><li><strong>Eles adoram o Brasil<br></strong>Você com certeza vai conhecer um(a) argentino(a) que conhece ou quer conhecer o Brasil. O sonho de muitos é conhecer Florianópolis ou Rio de Janeiro.</li><li><strong>Eles gostam de futebol<br></strong>A maior festa que une os argentinos ainda é o futebol. Eles também gostam de ouvir você falar dos times brasileiros. Desde que você não fale mal do futebol argentino, está tudo bem. :)</li><li><strong>Eles também tomam chimarrão (mate)<br></strong>Eu me surprendi quando visitei uma família que me convidou a preparar um mate <em>(chimarrão do Rio Grande do Sul)</em>, foi aí que percebi que somos todos irmãos de território. =)</li></ul><blockquote>Acredito que mencionei todos os principais tópicos para que você possa realizar uma viagem tranquila. Na verdade, acredito que os países latinos seguem as mesmas regras de bagagem e atenção ao turista.</blockquote><blockquote>Por favor, deixe-me saber se o artigo te deixou mais confiante em viajar ao país. Este artigo foi feito de coração ❤ pensando em sua próxima viagem.</blockquote><p>Sugestões e dúvidas, deixe um comentário!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNkPa3dtruha448QRYJzvA.jpeg" /><figcaption><strong>Foto:</strong> <em>MiMendoza (Argentina)</em></figcaption></figure><p><em>Não sabe qual destino escolher? — Acompanhe-nos no </em><a href="https://www.instagram.com/bestamericas.travel/"><strong><em>Instagram</em></strong></a><strong><em><br></em></strong>Leia um resumo das atividades turísticas em nosso <a href="https://twitter.com/bestamericas_"><strong><em>Twitter</em></strong></a><strong><em><br></em></strong>Saiba mais sobre vídeos e experiências turísticas em nosso <a href="https://fb.me/bestamericas.travel"><strong><em>Facebook</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a340ce764413" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bestamericas-travel/quer-viajar-para-argentina-a340ce764413">Quer viajar para Argentina?</a> was originally published in <a href="https://medium.com/bestamericas-travel">Best Americas</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Being free from “expo” in React Native apps]]></title>
            <link>https://medium.com/reactbrasil/being-free-from-expo-in-react-native-apps-310034a3729?source=rss-6ad46e4c7b42------2</link>
            <guid isPermaLink="false">https://medium.com/p/310034a3729</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[babel]]></category>
            <dc:creator><![CDATA[Francis Batista]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 00:46:09 GMT</pubDate>
            <atom:updated>2019-12-03T19:31:21.276Z</atom:updated>
            <content:encoded><![CDATA[<p>Expo allows you to work using an SDK with access to native functionalities easily saving your time whether you desire to create an app in few steps.</p><p><a href="https://blog.expo.io/you-can-now-use-expo-apis-in-any-react-native-app-7c3a93041331">You can now use Expo APIs in any React Native app</a></p><p>The last versions of React Native already come with expo introduced.</p><blockquote>What’s the easiest way to remotely share a mobile app that’s still under development without Expo?</blockquote><p>This article covers a way to develop without expo for people who decided to keep the project according to their own development strategy.</p><p>If you want to share your project in real time, please search about <strong><em>Codeanywhere IDE</em></strong>.</p><p><a href="https://www.codeanywhere.com/">Codeanywhere</a></p><p>You can also share pieces or the entire React Native code by <strong><em>Codesandbox</em></strong>.<br>See below an embed code as example:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodesandbox.io%2Fembed%2Fz6x9w4x48p&amp;url=https%3A%2F%2Fcodesandbox.io%2Fs%2Fz6x9w4x48p&amp;image=https%3A%2F%2Fcodesandbox.io%2Fapi%2Fv1%2Fsandboxes%2Fz6x9w4x48p%2Fscreenshot.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codesandbox" width="1000" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d91333c668541ed12912d0667b089ad/href">https://medium.com/media/1d91333c668541ed12912d0667b089ad/href</a></iframe><p>You can also read about that here:</p><p><a href="https://omahacode.com/how-to-create-a-react-native-web-app/">How to Create a React Native Web App | React Native For Web Tutorial</a></p><blockquote>Expo works fine for me.. So, why would I get rid of the expo?</blockquote><p>I made a list with some situations you don’t need expo in your life:</p><ul><li><em>to customize the installation;</em></li><li><em>to install custom version of modules (oldest/latest);</em></li><li><em>to use your own React Native modules;</em></li><li><em>to avoid inconsistencies in modules developed by the community;</em></li><li><em>to have more control of project dependencies;</em></li><li><em>to use new ReactJS features;</em></li><li>to use your own CI/CD implementation;</li></ul><h4>First we are showing you how to create a project <em>with expo</em></h4><p>Basically you need create-react-native-app.<br>We’re going to build an app using the commandcreate-react-native-app RNwithExpo. It’ll install everything for you and will run the project pretty easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*8ZAtkrvZerfkBMy-CS7LYg.png" /><figcaption>Screenshot of React Native project with expo</figcaption></figure><p>Basically, React Native project using expo has this little structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*BByxJA_OhdqV1E-U8UYvrg.png" /><figcaption>Screenshot of React Native expo project structure</figcaption></figure><p>It because <em>expo controls all for you</em>. <strong><em>NOT you!</em></strong></p><p>But.. We’d like to have control of the development of our applications.<br>Now we are going to use two ways to create our project <em>without</em> expo.</p><h4><strong>Using the </strong><strong>react-native-cli command line</strong></h4><p>The Facebook community developed a way to build React Native applications without expo. You can read more about that below:</p><p><a href="https://facebook.github.io/react-native/docs/getting-started.html#creating-a-new-application">Getting Started · React Native</a></p><p>Basically, we install a react-native-cli and build a blank/tabs project using the command init , such asreact-native-cli init RNwithoutExpo , where RNwithoutExpo is the name of the project we want to create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*RXODksmMuG_RTj71pK0OOg.png" /><figcaption>Screenshot of RN project built using `react-native-cli` command line</figcaption></figure><p>This project is using the last compatible dependencies between React and React Native. It’s also using babel as JavaScript compiler and jest as JavaScript testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*-R9P4-JtV-Y-BNiqbn05hw.png" /><figcaption>Screenshot of the package.json in our React Native project without expo</figcaption></figure><p>Running it we’ll see all OK in our project without expo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ipSd8fiPIJa52iDy4D0LkQ.png" /><figcaption>Screenshot of RN project running without expo</figcaption></figure><h4><strong>Ejecting your React Native expo project</strong></h4><blockquote>Scenario: You are in a situation where your MVP has been approved and you’re seeing in your research on the development strategy, that the application will grow fast, and you need to install many features and testing them as soon as possible to choose the better to your product life cycle.</blockquote><p>If you are in this scenario, you want to eject expo of your application and try to work with your own npm packages. You can eject expo running the command npm run eject on the console.</p><p>Make sure you’ll choose the option <strong><em>React Native: I’d like a regular React Native project</em></strong> and then rename your project accordingly.</p><p>You’ll see a few questions on the console about the ejecting task:</p><ul><li><strong><em>How would you like to eject your app?</em> </strong>React Native</li><li><strong><em>What should your app appear as on a user’s home screen?</em></strong> React Native App</li><li><strong><em>What should your Android Studio and Xcode projects be called?</em></strong> ReactNativeApp</li></ul><p>Where React Native is the name of your app. Change it to your preference.</p><p>Soon after ejecting expo you’ll receive your project like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*sw18uMHBrDbfJqBLRhPl3A.png" /><figcaption>Screenshot of React Native expo project ejected</figcaption></figure><p>So I’ve discovered it’s not enough for you to eject expo to be independent of it. You need to do some adjustments in your project, and that’s what I’ll show you below.</p><p>First, you’ll start with the package.jsonfile.<br>You need to remove any reference of expo of your packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*jjyRLNcGEkSn4-Na83kzAA.png" /><figcaption>Screenshot of how to remove any expo reference</figcaption></figure><p>After that, remove .expo/ directory, and remove the babel-preset-expo on the babel.config.js file. If you prefer, you can simplify the babel.config.js configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*0eRJt1BJa9baXfH9ueaqWw.png" /><figcaption>Screenshot about removing expo references in the project</figcaption></figure><p>In this step, many developers make the mistake updating React to the last version. This way the application will not run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*mI0e2pjSFwClJYxnORd2OQ.png" /><figcaption>Screenshot about most commonly Gradle error in this situation</figcaption></figure><p><strong><em>In this article, I’m not taking into account settings for iOS environment.</em></strong></p><p>The most common error involving Gradle is:</p><pre>Could not get unknown property &#39;mergeResourcesProvider&#39; for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.</pre><blockquote><em>But I have the solution to that!</em></blockquote><p>Return React to an earlier version. See the package.json file below:</p><pre>{<br>  &quot;scripts&quot;: {<br>    &quot;start&quot;: &quot;react-native start&quot;,<br>    &quot;android&quot;: &quot;react-native run-android&quot;,<br>    &quot;ios&quot;: &quot;react-native run-ios&quot;<br>  },<br>  &quot;dependencies&quot;: {<br>    &quot;react&quot;: &quot;^16.8.3&quot;,<br>    &quot;react-native&quot;: &quot;^0.59.1&quot;<br>  },<br>  &quot;devDependencies&quot;: {},<br>  &quot;private&quot;: true<br>}</pre><p>In the previousandroid/build.gradle build configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*jMU1beCsCe6AWPNzX6153g.png" /><figcaption>Screenshot about previous android/build.gradle configuration</figcaption></figure><p>…change some things in the buildscript property:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*USPrOhHDsGbfWz36RRRdJg.png" /><figcaption>Screenshot about the new android/build.gradle configuration</figcaption></figure><p><strong>An observation:</strong> We wont use SDK version 28 <em>(Android 8)</em> to targetSdkVersionproperty to avoid unnecessary configurations. But if you want, below I present a link teaching how to fix the most common error about this version:</p><p><a href="https://stackoverflow.com/a/50834600/3332734">Android 8: Cleartext HTTP traffic not permitted</a></p><p>So, let’s continuing.. Now change the version of distributionUrl in the android/gradle/wrapper/gradle-wrapper.properties file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*omuNqVFBJx4zfVvSuc0mBQ.png" /><figcaption>Screenshot about the gradle-wrapper.properties file</figcaption></figure><blockquote>So far you didn’t have to install anything</blockquote><p>…other than compatible versions of <em>React</em> and <em>React Native</em>. And also you just made a <em>few adjustments</em> to <strong><em>gradle</em></strong> config files.</p><blockquote><em>We are missing to create an important file</em></blockquote><p>We are almost missing to create the index.js file inside our application. :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nt0XL8c-yFypQPSZVEu7Mg.png" /></figure><p>Here’s an example of code to the /path-to-project/index.js file.</p><pre>import { AppRegistry } from &quot;react-native&quot;;<br><br>import App from &quot;./App&quot;;<br>import { name as appName } from &quot;./app.json&quot;;<br><br>AppRegistry.registerComponent(appName, () =&gt; App);</pre><blockquote>If you have any issues related to Remote JS Debugging, follow the steps below:</blockquote><h4>Metro Remote JS Debugging</h4><p><em>Now we don’t have any JavaScript debug for our expo ejected application.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Owdce9js_P0AzpUCdoX-3w.png" /><figcaption>Screenshot about Metro’s missing in our expo ejected project</figcaption></figure><p>This error is very easy to be remedied because it’s very easy to be identified as well.</p><pre>Error: listen EADDRINUSE :::8081<br> at Server.setupListenHandle [as _listen2] (net.js:1345:14)<br> at listenInCluster (net.js:1386:12)<br> at Server.listen (net.js:1474:7)<br> at Promise (/home/paneladm/projects/react-native-apps/RNwithExpo/node_modules/metro/src/index.js:253:20)</pre><p>So we need to install metro-react-native-babel-preset package as devDependencies</p><pre>npm i -D metro-react-native-babel-preset</pre><p>and mention it in the babel.config.js file, something like this:</p><pre>presets: [&quot;module:metro-react-native-babel-preset&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*OlaOXm31tryEIkWVpbvciQ.png" /></figure><p>I added an extra Text line followed by some style to test the Live Reload and all OK now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*IfFmGJ2a7pzL05UUs4l5Eg.png" /><figcaption>Screenshot of the final project working</figcaption></figure><blockquote>That’s it! =)<br>Now you have the control over your project!</blockquote><p>I created a github repository about the project worked on this article.</p><p><a href="https://github.com/francisrod01/RNwithoutExpo">francisrod01/RNwithoutExpo</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*4iwW0__XLMuiG8LiUI_hzg.jpeg" /><figcaption>That’s it! :D</figcaption></figure><h4>Unable to load script from assets index.android.bundle</h4><p>If you have any problems with the Android bundle it’s because the assets folder doesn’t exist. To solve that issue, follow the instructions at this link:</p><p><a href="https://stackoverflow.com/a/44476757/3332734">Unable to load script from assets index.android.bundle on windows</a></p><blockquote>I hope I’ve helped those with doubts on how to create applications in the new versions of React Native without using <em>these magic libs</em>.</blockquote><p>Any question, don’t hesitate to ask me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=310034a3729" width="1" height="1" alt=""><hr><p><a href="https://medium.com/reactbrasil/being-free-from-expo-in-react-native-apps-310034a3729">Being free from “expo” in React Native apps</a> was originally published in <a href="https://medium.com/reactbrasil">React Brasil</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>