<?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 Lucas Silveira on Medium]]></title>
        <description><![CDATA[Stories by Lucas Silveira on Medium]]></description>
        <link>https://medium.com/@lucas.fernandes.silveira?source=rss-62b399acd8e3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-HLFJnbhahvigYhw.</url>
            <title>Stories by Lucas Silveira on Medium</title>
            <link>https://medium.com/@lucas.fernandes.silveira?source=rss-62b399acd8e3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:51:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lucas.fernandes.silveira/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[React Navigation(v2) com Redux (PT-BR)]]></title>
            <link>https://medium.com/rocketseat/react-navigation-v2-com-redux-pt-br-fb803cc9ca46?source=rss-62b399acd8e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb803cc9ca46</guid>
            <category><![CDATA[react-navigation]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[redux-saga]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Lucas Silveira]]></dc:creator>
            <pubDate>Thu, 06 Sep 2018 15:19:45 GMT</pubDate>
            <atom:updated>2018-10-15T14:09:59.257Z</atom:updated>
            <content:encoded><![CDATA[<p>Como já devem saber, a lib react-navigation mudou. Se você costuma usar a navegação com redux mantendo estado da mesma, esse artigo é pra você.</p><p><strong>Nós vamos criar/separar isso em uma lista de arquivos, sim uma lista, pois a vida não é justa. Então vamos lá:</strong></p><blockquote>Crie a pasta <em>src/navigation </em><strong><em>e</em></strong><em> o arquivo src/navigation/routes.js.</em> É neste lugar que vamos setar nossas rotas.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/303d205776b252150b03a950d5a3607b/href">https://medium.com/media/303d205776b252150b03a950d5a3607b/href</a></iframe><p>Estou usando <strong><em>FluidNavigator</em></strong><em>, que me permite utilizar fades nas transições, mas você pode utilizar o recomendado:<br></em><em>import { createStackNavigator } from &#39;react-navigation&#39; (caso utilize redux)</em></p><blockquote>Crie <em>src/navigation/reducer.js </em>that que irá gerenciar o estado da navegação e instale: <em>yarn add react-navigation-redux-helpers</em></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5268f0ec10b7b66554d546bcc2d29a9b/href">https://medium.com/media/5268f0ec10b7b66554d546bcc2d29a9b/href</a></iframe><blockquote>Crie <em>src/navigation/index.js</em></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/413be6b9369f871733d6335f63b20091/href">https://medium.com/media/413be6b9369f871733d6335f63b20091/href</a></iframe><blockquote>Estamos quase lá e agora nós precisamos configurar um <strong>reducer </strong>e um <strong>middleware</strong> no createStore/configureStore, ou sei lá como você chama isso.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/789fc145a8d3dfa71e7c8624439fe58c/href">https://medium.com/media/789fc145a8d3dfa71e7c8624439fe58c/href</a></iframe><p>Ok, agora é hora de utilizar isso no seu app</p><p>src/index.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/553f0ef1416663cff211e529ad910db5/href">https://medium.com/media/553f0ef1416663cff211e529ad910db5/href</a></iframe><blockquote>… E agora você consegue navegar entre as paginas de algumas formas, mas vou falar de apenas duas:</blockquote><ol><li>a mais comum, no press de um botão:</li></ol><p>this.props.navigation.navigate(&#39;paginate)</p><p>2 . Eu uso o <strong>saga</strong> pra fazer o dispatch dos retornos async</p><p>import { NavigationActions } from &#39;react-navigation&#39;</p><p>NavigationActions.navigate({ routeName: &#39;somepage&#39; });</p><p>BOM, É ISSO AÍ GALERA! E tenho que dizer OBRIGADO ao <a href="https://medium.com/@horbjn"><strong>Higo Ribeiro</strong></a> pela sua incrivel ajuda na comunidade <a href="http://rocketseat.com.br/"><strong>rocketseat.com.br</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb803cc9ca46" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rocketseat/react-navigation-v2-com-redux-pt-br-fb803cc9ca46">React Navigation(v2) com Redux (PT-BR)</a> was originally published in <a href="https://medium.com/rocketseat">Rocketseat</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Navigation(v2) with Redux]]></title>
            <link>https://medium.com/@lucas.fernandes.silveira/react-navigation-v2-with-redux-ea081f6738a3?source=rss-62b399acd8e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea081f6738a3</guid>
            <category><![CDATA[react-navigation-redux]]></category>
            <category><![CDATA[react-navigation]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Lucas Silveira]]></dc:creator>
            <pubDate>Sat, 23 Jun 2018 00:59:42 GMT</pubDate>
            <atom:updated>2018-06-23T13:43:07.432Z</atom:updated>
            <content:encoded><![CDATA[<p>As you have known, react-navigation has changed, so if you used to set your navigation with redux, this article is for you.</p><p><strong>We got to create/separate it in a bunch of files, but life is not fair too, so let’s start:</strong></p><blockquote>Create <em>src/navigation folder </em><strong><em>and</em></strong><em> src/navigation/routes.js.</em> That&#39;s the place we got to set our app routes (like name says, duh)</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/303d205776b252150b03a950d5a3607b/href">https://medium.com/media/303d205776b252150b03a950d5a3607b/href</a></iframe><p>I<em>’m using </em><strong><em>FluidNavigator </em></strong><em>for fading transitions, but you can use the recommended<br></em><em>import { createStackNavigator } from &#39;react-navigation&#39; (in redux case)</em></p><blockquote>Create <em>src/navigation/reducer.js </em>that will manage the navigation state and install <em>yarn add react-navigation-redux-helpers</em></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5268f0ec10b7b66554d546bcc2d29a9b/href">https://medium.com/media/5268f0ec10b7b66554d546bcc2d29a9b/href</a></iframe><blockquote>Create <em>src/navigation/index.js</em></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/413be6b9369f871733d6335f63b20091/href">https://medium.com/media/413be6b9369f871733d6335f63b20091/href</a></iframe><blockquote>We’re almost there and now we need to configure a <strong>reducer </strong>and a <strong>middleware</strong> in the createStore, configureStore, whatever you call it.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/789fc145a8d3dfa71e7c8624439fe58c/href">https://medium.com/media/789fc145a8d3dfa71e7c8624439fe58c/href</a></iframe><p>Ok, now it’s time to use it in your app</p><p>src/index.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/553f0ef1416663cff211e529ad910db5/href">https://medium.com/media/553f0ef1416663cff211e529ad910db5/href</a></iframe><blockquote>… And you can navigate between pages in a few ways, but I’ll let here 2 common commands:</blockquote><ol><li>the usual on a press button event:</li></ol><p>this.props.navigation.navigate(&#39;paginate)</p><p>2 . I used to set this one in a <strong>saga</strong> dispatch for async returns</p><p>import { NavigationActions } from &#39;react-navigation&#39;</p><p>NavigationActions.navigate({ routeName: &#39;somepage&#39; });</p><p>THAT’ ALL FOLKS! And I got to say THANK&#39;S to <a href="https://medium.com/@horbjn"><strong>Higo Ribeiro</strong></a> for his incredible Help on <a href="http://rocketseat.com.br/"><strong>rocketseat.com.br</strong></a><strong> discord community</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea081f6738a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Navigation — screenInterpolator]]></title>
            <link>https://medium.com/@lucas.fernandes.silveira/react-native-screeninterpolator-33e2d24893df?source=rss-62b399acd8e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e2d24893df</guid>
            <category><![CDATA[react-navigation]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[stacknavigator]]></category>
            <category><![CDATA[screenwriting]]></category>
            <category><![CDATA[transitionconfig]]></category>
            <dc:creator><![CDATA[Lucas Silveira]]></dc:creator>
            <pubDate>Thu, 09 Nov 2017 00:43:50 GMT</pubDate>
            <atom:updated>2017-11-09T02:08:11.149Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey guys, thats my first time here…</p><p>I was trying to make StackNavigator to stop doing the default transitions so I&#39;ve decide to search and try it by my self and here is what I found!</p><p>If you want to <strong>disable</strong> all kind of transitions in your stack you need to:</p><pre>const MyStack = StackNavigator({<br>  Home: {<br>    screen: HomeScreen,<br>  },<br>}, <br>{<br> transitionConfig: () =&gt; ({ screenInterpolator: () =&gt; null }),<br>});</pre><p>Besides, if you want to try out <strong>“right to left”</strong> transition you can:</p><pre>import CardStackStyleInterpolator from &#39;react-navigation/src/views/CardStack/CardStackStyleInterpolator&#39;;</pre><p>And make it useful like this:</p><pre>const MyStack = StackNavigator({<br>  Home: {<br>    screen: HomeScreen,<br>  },<br>}, <br>{<br>  transitionConfig: () =&gt; ({ screenInterpolator: CardStackStyleInterpolator.forHorizontal }),<br>});</pre><p>There’s another <em>options</em> in <strong>CardStackStyleInterpolator </strong>so you can check it out on the path of import and discover by yourself to have some fun!</p><p>That’s it guys!<br>Bye.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/128/1*uVq9HsMlN5ck7baZ6vjDWw@2x.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e2d24893df" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>