<?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 Seyi Adedokun on Medium]]></title>
        <description><![CDATA[Stories by Seyi Adedokun on Medium]]></description>
        <link>https://medium.com/@adedokunseyi96?source=rss-b2e892f41363------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KfqsOg0I_apfymEVZVEPDQ.jpeg</url>
            <title>Stories by Seyi Adedokun on Medium</title>
            <link>https://medium.com/@adedokunseyi96?source=rss-b2e892f41363------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:48:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adedokunseyi96/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[The Ins and Outs of React Native Stack Navigation]]></title>
            <link>https://medium.com/@adedokunseyi96/the-ins-and-outs-of-react-native-stack-navigation-a25c0e4b3f42?source=rss-b2e892f41363------2</link>
            <guid isPermaLink="false">https://medium.com/p/a25c0e4b3f42</guid>
            <dc:creator><![CDATA[Seyi Adedokun]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 11:34:32 GMT</pubDate>
            <atom:updated>2023-03-10T16:24:58.432Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is React Native Stack Navigation?</strong></h3><p>React Native Stack Navigation is a navigation system that allows you to navigate between screens in a stack. The stack navigation system is built on top of the React Navigation library and provides a simple and efficient way to manage navigation in your React Native app.</p><h4>Why use React Native Stack Navigation?</h4><p>There are several reasons why you might want to use React Stack Navigation in your app.</p><p><strong>Firstly,</strong> it provides a simple and intuitive way for users to navigate through your app. Users can easily go back to previous screens, and they can see a clear visual representation of where they are in the app.</p><p><strong>Secondly</strong>, React Stack Navigation is highly customizable. You can easily customize the look and feel of your navigation bar, as well as the animations that are used when screens transition. This can help you create a unique and engaging user experience.</p><p><strong>Finally</strong>, React Stack Navigation is well-documented and well-supported. The library has a large community of developers who contribute to its development and maintenance. This means that you can easily find answers to any questions you may have, and you can be confident that the library will continue to be updated and improved over time.</p><h4>How to use React Native Stack Navigation?</h4><p>Using React Stack Navigation is relatively simple. Here are the basic steps:</p><p><strong>First Step</strong>: — Installation</p><p>You can do this using npm or yarn</p><p>Let me show you the screenshot of my Terminal here:</p><p>Open the Terminal of the project Directory:</p><p>for npm : paste “npm install <a href="http://twitter.com/react">@react</a>-navigation/stack”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*01XhNSRO2I-72RL7z8kY0w.png" /></figure><p>For yarn : paste “yarn add <a href="http://twitter.com/react">@react</a>-navigation/stack”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*KYIBlFTIJhCnU62XcBEVOA.png" /></figure><p>Let it install for sometimes,</p><p>Other Packages you need to install:-</p><p>React Natigation/Stack can’t work without having some other package installed in your project.</p><p><strong>What are the other Packages?</strong></p><ul><li>React Navigation/native : Inside your project Terminal</li></ul><blockquote>npm install @react-navigation/native</blockquote><p><strong><em>OR</em></strong></p><blockquote>yarn add @react-navigation/native</blockquote><ul><li>Gesture Handler</li></ul><blockquote>npm install react-native-gesture-handler</blockquote><p><strong><em>OR</em></strong></p><blockquote>yarn add react-native-gesture-handler</blockquote><p>Once the installation is complete, go to your package.json to confirm your installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*fQm4SL-4-pR1LbLoiKKcFA.png" /><figcaption>Package.json</figcaption></figure><p>Make sure you have , “@react-navigation/native”, “@react-navigation/stack”, and”react-native-gesture-handler” inside your package.json.</p><p>Once your done with the confirmation:</p><p>Inside your project folder,</p><p>Create a folder with name “route” and create a new file called stack.js inside “route” folder</p><p>Make sure you have some components your want to render to the screen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*9TvmlRPVvtfqPBSMr78_lA.png" /><figcaption>Stacks.js</figcaption></figure><p>&lt;Stack.Screen name=’todos’ component={TodoList} /&gt;</p><p>Will be your first screen when you run your app , it serve as index.html in web. so you have to paste your index screen above all code in your Stack.group tag.</p><p>Look for <strong>app.js</strong> in your project Folder,</p><p>Paste this code to your <strong>app.js</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*BL3xOI9Xm8JhVSjdtJCQ6w.png" /><figcaption>app.js</figcaption></figure><h4>Programmatically Navigation:-</h4><p>Inside any of you component:</p><p>import { useNavigation } from ‘@react-navigation/native’;</p><p>let me show you an example of my code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*MCB1p7mRa40MbyMP0fo1kw.png" /><figcaption>onbordingscreen</figcaption></figure><p>navigation.navigate(“todos”); the “todos” is the key to the screen the navigation will be going.</p><h4>how can you pass data to screen</h4><p>useEffect(() =&gt;{</p><p>setTimeout(() =&gt; {</p><p>navigation.navigate(“todos”,{name:”Code with Shenet”,Id:Math.random()});}, 1000);},</p><p>[]);</p><h4>how to get the data</h4><p>inside the component you want to get the data . access it like you want to access normal react Props</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*AA-MC_y5_YGCmqERHAoE_g.png" /><figcaption>component to get the data</figcaption></figure><h3>Conclusion</h3><p>React Native Stack Navigation is a powerful tool for navigating through your app. It provides a simple and intuitive way for users to move between screens, and it is highly customizable. If you’re building a React Native app, React Stack Navigation is definitely worth considering. It can help you create a great user experience and make your app more successful.</p><p><strong>I am Fullstack Software Developer</strong></p><p><strong>Youtube channel: </strong>@code_with_sheynet351</p><p><strong>Thanks</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a25c0e4b3f42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>