Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,776,670 members, 6,615,513 topics. Date: Friday, 03 December 2021 at 08:35 PM

Skptricks's Posts

Nairaland Forum / Skptricks's Profile / Skptricks's Posts

(1) (2) (3) (4) (5) (of 5 pages)

Programming / Best Ways To Write Cleaner React Code by skptricks: 9:54am On May 27
In this tutorial we are going to use discuss on react best practices and best way to write clean code. In general, learning how to write cleaner React code will make you a more valuable and overall happier React developer. Lets quickly jump to react code.

Best Ways to Write Cleaner React Code



1. Make use of JSX shorthands

In the example below, we're using the prop showTitle to display the title of our app within a Navbar component.

// src/App.js

export default function App() {
return (
<main>
<Navbar showTitle={true} />
</main>
);
}

function Navbar({ showTitle }) {
return (
<div>
{showTitle && <h1>My Special App</h1>}
</div>
)
}


Do we need to explicitly set show title to the Boolean true? We don't! A quick shorthand to remember is that any prop provided on a component has a default value of true.



So if we add the prop showTitle on Navbar, our title element will be shown:

// src/App.js

export default function App() {
return (
<main>
<Navbar showTitle />
</main>
);
}

function Navbar({ showTitle }) {
return (
<div>
{showTitle && <h1>My Special App</h1>} // title shown!
</div>
)
}


Another useful shorthand to remember involves passing string props. When you're passing a prop value that's a string, you don't need to wrap it in curly braces.



If we are setting the title of our Navbar, with the title prop, we can just include its value in double quotes:

// src/App.js

export default function App() {
return (
<main>
<Navbar title="My Special App" />
</main>
);
}

function Navbar({ title }) {
return (
<div>
<h1>{title}</h1>
</div>
)
}


2. Reduce prop drilling with React context

Read More...
Programming / React Native Activityindicator Andriod IOS Example by skptricks: 6:49am On Aug 22, 2019
React Native ActivityIndicator Andriod IOS Example

This tutorial explains how to display loading screen or activity indicator in react native application for android and ios device. ActivityIndicator is the common circular loading indicator used in both android and iOS devices. This type of loader which is basically used to display a loading dotted moving circle on android and iPhone devices, When user trying to loading something from server.

React Native ActivityIndicator Andriod IOS Example


React Native ActivityIndicator Example
Lets see the complete source code that helps to display loading screen or activity indicator in react native application for android and ios device.

Step 1: Create a new react native project, if you don’t know how to create a new project in react native just follow this tutorial.

Step 2: Open App.js File in your favorite code editor and erase all code and follow this tutorial.

Step 3: Through react , react-native packages import all required components.
import React, { Component } from 'react';
import { StyleSheet, View, ActivityIndicator, Button } from 'react-native';

Step 4: Lets create constructor block inside your App component. In the constructor block we have created state variables that helps to hide and show activity indicator from the device screen.

constructor(props) {
super(props);
this.state = {
isLoading: true
}
}

Step 5: Lets create function named as ShowHideActivityIndicator. This function would change the isLoading state value on button click.
ShowHideActivityIndicator = () => {
if (this.state.isLoading == true) {
this.setState({ isLoading: false })
}
else {
this.setState({ isLoading: true })
}
}

Step 6: Implement render method inside the App class and wrapped the below layout design inside the root View component.
render() {
return (
<View style={styles.Container}>
{this.state.isLoading ? <ActivityIndicator size="large" color="#0000ff" style={{ padding: 20 }} /> : null}
<Button title="Hide ActivityIndicator" onPress={this.ShowHideActivityIndicator} />
</View>
);
}

Step 7 : Apply the below style sheet design.
const styles = StyleSheet.create({
Container: {
justifyContent: 'center',
flex: 1,
margin: 10
},

});
Programming / React Native Swiper Slider Layout Example by skptricks: 5:35am On Apr 16, 2019
React Native Swiper Slider Layout Example

This tutorial explains how to create simple swiper slider layout in react native application. Now a days this kind of swiper slider layout design used by most of the android or ios mobile application. If you own a smartphone, you already know what a gesture is. Gestures are those subtle motions to trigger interactions between the touch screen and the user. Generally, it lasts for the time between the first touch on the screen to the point when the finger leaves the surface. Using this Swiper layout design we can switch back and froth between previous and next page of your mobile application.

[img]https://1.bp..com/-Ao9wK_aBEoo/XLMzIEXLztI/AAAAAAAACrM/W6WzDfSt560lG24BtbCymDCjeWMS3BG6gCLcBGAs/s640/slider.jpg[/img]
Programming / Local Database In React Native Application by skptricks: 6:23am On Apr 11, 2019
Local Database in React Native Application

In this post we are going to learn how to work with Local Database in React Native Application. More and more mobile applications need data to work, and databases have for quite a while been the most common way of storing and managing data. So, in some scenario, a mobile application uses a database that is hosted in the cloud, and connects remotely to it in order to access its data. This of course implies that, in order to be responsive, a mobile application needs an active and quite fast network connection. As a Mobile Application developer, we always search for a Local Database. A database which offers offline synchronization, reliable performance, security, and better integration with other stacks.

[img]https://4.bp..com/-v8y4moEcTjg/XK7FjkyCA8I/AAAAAAAACps/KpGzUSUPYYgXIhbU39ZRXkyKyLOlAi86QCLcBGAs/s640/local.jpg[/img]


Local Database in React Native Application
Programming / React Native Border Radius With Background Color Example by skptricks: 6:42am On Apr 04, 2019
React Native Border Radius With Background Color Example

This tutorial explains how to add border radius and background color in Image Component in react native application. if you remember a month back we have shared demo on React Native to display or show Border Around Images, similarly here we are going to implement for setting border radius of an images. Lets get started.

[img]https://2.bp..com/-nbrKXN9yTso/XKQ21aju86I/AAAAAAAACo8/5jclhzthhIgGL_ks9Z6e7gxezBs8UrdVwCLcBGAs/s640/border1.png[/img]
Programming / React Native Scrollview Example by skptricks: 5:12am On Apr 01, 2019
React Native ScrollView Example

This tutorial explains how to implement scrollview component in react native application. The ScrollView is a generic scrolling container that can host multiple components and views. The scrollable items need not be homogeneous, and you can scroll both vertically and horizontally (by setting the horizontal property). ScrollViews can be configured to allow paging through views using swiping gestures by using a pagingEnabled props. Swiping horizontally between views can also be implemented on Android using the ViewPagerAndroid component.

[img]https://2.bp..com/-dQWmxJ0zDuE/XKDcQSENH4I/AAAAAAAACn0/lJAasMOCEmcw4FVPLtXbcVH7dw5o3PF8gCLcBGAs/s640/scroll.png[/img]
Programming / Example To Set Border Radius Of An Image In React Native by skptricks: 5:49am On Mar 28, 2019
Example to Set Border Radius of an Image in React Native

In this tutorial, we are going to explain how to set border radius on an images in react native application. if you remember a month back we have shared demo on React Native to display or show Border Around Images, similarly here we are going to implement for setting border radius of an images. Lets get started.

Set Border In React Native component :
Using below CSS properties you can set border width and color in react native component.
borderWidth : This will set border width.
borderColor : This will set border color.

Set Border Radius In React Native component :
Using below CSS properties you can set border radius around image in react native application.
borderColor: '#F44336', // Set border Hex Color code here.
borderRadius: 10 // Set border Radius.

[img]https://2.bp..com/-JEmjc84ca-I/XITilms6kRI/AAAAAAAACgY/QuuBVlgm3YIODdMBvmAV6uXrAmgibAxowCLcBGAs/s640/border.png[/img]


https://www.youtube.com/watch?v=cn8dBccKwo4
Programming / Online Ios Emulator by skptricks: 4:03pm On Mar 23, 2019
Online iOS Emulator

This post explains how to use online iOS emulator for react native application development. We are going to use Snack Expo website as online application development editor and also you can see the live result in online emulator as well.
Lets follow the below steps to run react native code in online android emulator.

Step-1 : First visit Snack expo website URL https://snack.expo.io/

Step-2 : After that you will be seeing the below results in your screen.

[img]https://1.bp..com/-tIrJxSjScm4/XJYIqspCNrI/AAAAAAAAClc/_iRDvSVB_tor0TpX1uWfu3xFjwMnMtIcwCLcBGAs/s640/11.png[/img]
Programming / Add Blinking Animation On Text In React Native by skptricks: 7:52am On Mar 23, 2019
Add Blinking Animation on Text in React Native

This tutorial explains how to create blinking animation on Text in React Native application. In this example we are going to create simple custom component name as BlinkingText. This component perform the blinking animation with the help of react state and props using setInterval function. Generally blinking text is used to get user attention while surfing the application.

[img]https://4.bp..com/-wjhrX62WYIs/XJXP_Ig8boI/AAAAAAAACkI/i1EUsC2vJUgrgOyel8YTSvb-HqqvPdjcwCLcBGAs/s640/blink.png[/img]


https://www.youtube.com/watch?v=G3nzoOvdbew
Programming / Debug React Native Android Or Ios App Using Console Log by skptricks: 5:33am On Mar 21, 2019
Debug React Native Android or iOS App Using Console log

This tutorial explains how to perform debugging using console.log() in react native application. Console.log() is a inbuilt and predefined function present in javascript. This function is created for both Android and iOS applications and used to maintain and debug errors in apps on run time. Console.log() helps us to detect errors in our code.


[img]https://4.bp..com/-GdZ7YwQPL_o/XJMRaqHkdfI/AAAAAAAACik/yi8NdDJL97MHLh_DfnNLRyZFoBCq76b8QCLcBGAs/s400/debug.png[/img]

In this example we are using console.log statement inside the function and that function mapped to the button as a click listener. When user perform click event on the button, then it will print console.log statement message in the console. Lets use the below complete source code for logging a message in console, that ultimately help you to debug the code.
Programming / React Native Debugging Methods by skptricks: 5:37am On Mar 20, 2019
React Native Debugging Methods

This tutorial explains how to use debugging options in react native application to identify the bugs or defect in android or ios application. React native offers a couple of methods that help in debugging your code.

You can access the developer menu by shaking your device or by selecting "Shake Gesture" inside the Hardware menu in the iOS Simulator. You can also use the ⌘D keyboard shortcut when your app is running in the iOS Simulator, or ⌘M when running in an Android emulator on Mac OS and Ctrl+M on Windows and Linux. Alternatively for Android, you can run the command adb shell input keyevent 82 to open the dev menu (82 being the Menu key code).and click ‘Debug JS Remotely’ like so:

[img]https://3.bp..com/-KVyOv4mx8uo/XJCP0YDq8_I/AAAAAAAAChs/p281OpMD7FQPzROZZ10DvQu1OR80qTDMACLcBGAs/s400/Screenshot_1552977816.png[/img]
Programming / Set Text Color In React Native by skptricks: 5:48pm On Mar 10, 2019
Set Text Color In React Native

This tutorial explains how to set text color in react native application. We will make this example as simple as possible, it may help you to build more understanding on react native to set color of text content. You need to use color attribute/property of stylesheet design, in order to set text color in your Text component.

Set text color in react native application :
Using below CSS properties you can set text color in your react native application.
color: '#f44336' // apply the color code in color stylesheet property

[img]https://4.bp..com/-LyjDcBah7S8/XIU6x_WwiOI/AAAAAAAAChE/0UGcqe_bPcEkCl902ZHOQ85SlXQtKbWEQCLcBGAs/s640/text%2Bcolor.png[/img]
Education / Set Border Radius In React Native Component by skptricks: 12:45pm On Mar 10, 2019
Example to Set Border Radius of an Image in React Native

In this tutorial, we are going to explain how to set border radius on an images in react native application. if you remember a month back we have shared demo on React Native to display or show Border Around Images, similarly here we are going to implement for setting border radius of an images. Lets get started.

Set Border In React Native component :
Using below CSS properties you can set border width and color in react native component.
borderWidth : This will set border width.
borderColor : This will set border color.

Set Border Radius In React Native component :
Using below CSS properties you can set border radius around image in react native application.
borderColor: '#F44336', // Set border Hex Color code here.
borderRadius: 10 // Set border Radius.
[img]https://2.bp..com/-JEmjc84ca-I/XITilms6kRI/AAAAAAAACgY/QuuBVlgm3YIODdMBvmAV6uXrAmgibAxowCLcBGAs/s640/border.png[/img]
Politics / Example To Set Border Radius Of An Image In React Native by skptricks: 12:34pm On Mar 10, 2019
Example to Set Border Radius of an Image in React Native

In this tutorial, we are going to explain how to set border radius on an images in react native application. if you remember a month back we have shared demo on React Native to display or show Border Around Images, similarly here we are going to implement for setting border radius of an images. Lets get started.

Set Border In React Native component :
Using below CSS properties you can set border width and color in react native component.
borderWidth : This will set border width.
borderColor : This will set border color.

Set Border Radius In React Native component :
Using below CSS properties you can set border radius around image in react native application.
borderColor: '#F44336', // Set border Hex Color code here.
borderRadius: 10 // Set border Radius.
[img]https://2.bp..com/-JEmjc84ca-I/XITilms6kRI/AAAAAAAACgY/QuuBVlgm3YIODdMBvmAV6uXrAmgibAxowCLcBGAs/s640/border.png[/img]
Programming / View On-device Files With Device File Explorer by skptricks: 6:00am On Mar 06, 2019
View On-Device Files With Device File Explorer

The Device File Explorer allows you to view, copy, and delete files on an Android device. This is useful when examining files that are created by your app or if you want to transfer files to and from a device.

Note: Most device data is not visible unless you are using a rooted device or an emulator with a standard Android (AOSP) system image (not one of the Google APIs or Google Play system images). And when using a connected device, be sure you enable USB debugging.

[img]https://3.bp..com/-TeueK7t2CLM/XHuvxmfwXYI/AAAAAAAACfU/JW_I_hObkGUi3nVkyExFgOjpR286f2JmwCLcBGAs/s640/11.png[/img]
Programming / React Native Props Example by skptricks: 6:35pm On Mar 04, 2019
React Native Props Example

React and React Native is component based. We divide the complex UI into basic components. After developing the basic components we again adds all these components to create a complex UI which also called as complex component. React and React Native controls the data flow in the components with state and props. The data in states and props are used to render the Component with dynamic data.

Understanding ReactJS Props :
In React we use props to send data to components.
In React every component is treated as a pure javascript function.
In React props are equivalent to parameters of a pure javascript function.
Props are immutable. Because these are developed in the concept of pure functions. In pure functions we cannot change the data of parameters. So, also cannot change the data of a prop in React.

[img]https://4.bp..com/-t105Zz8ejv0/XHv68Mpg0_I/AAAAAAAACfw/FDeb2_SM7Dw3XqhQBcOEpQBv8kst8KG9wCLcBGAs/s640/props.png[/img]
Programming / React Native Installing Realm Mobile Database In Android Or IOS by skptricks: 1:08pm On Mar 03, 2019
React Native Installing Realm Mobile Database In Android Or IOS

When Realm was launched in 2014, the goal was to help mobile developers build better apps faster by giving them a robust alternative to SQLite and Core Data. The Realm Mobile Database is a cross-platform database solution that can be used as an alternative to SQLite and Core Data. Compared to these two options, Realm is easier to set up and use. To perform the same operation in Realm, you usually end up writing fewer lines of code than you would with SQLite or Core Data. On performance, Realm is said to be faster and it also offers other modern features such as encryption, JSON support and data change notifications.


[img]https://4.bp..com/-okk5JgaImFQ/XHtlV1BjwxI/AAAAAAAACfE/9JU15cNQtBwOazFFinD1r8qkAzWsLjtjwCLcBGAs/s640/insert.png[/img]
Programming / Example To Call Functions Of Other Class From Current Class In React Native by skptricks: 6:04am On Mar 01, 2019
Example To Call Functions Of Other Class From Current Class In React Native

This tutorial explains how to Call Functions of Other Class From Current Class in React Native application. If you read java, c++ and other object oriented programming languages, then you must be remembering about parent and child class relationship. In order to access function and variable of another class we need to create object instance of that particular class. In react and react native we can create similar functionalities in order to access other class function and variable.

[img]https://4.bp..com/-Yu4MHqfYccg/XHTD5JNNVkI/AAAAAAAACeA/ynQx1jAGb3ge3IY3MlocwFTf-HdxDei6gCLcBGAs/s640/c12.png[/img]
Programming / How To Console.log In React Application Using JSX ? by skptricks: 6:24am On Feb 27, 2019
How to console.log in React application using JSX ?

In this tutorial, we are going to discuss how to perform console.log() in react and react native application inside the render block. Most of the times developer trying to add console.log statement inside the return block of render block, in that case it will not print the statement inside the console rather it will print the results inside the browser screen.

[img]https://4.bp..com/-flXSmj-v_s8/XHYMKGhdONI/AAAAAAAACeM/vwBWoeaaYz0CmN8X7K9M-Hocv9yjqZU5QCLcBGAs/s640/console.lo.png[/img]
Programming / Simple Ways To Speed Up Your React Native App by skptricks: 4:40am On Feb 05, 2019
Simple ways to speed up your react native app

This this tutorial we are going to discuss simple ways to speed up react or react native application. Hope this method helps to improve the performance of your react and react native application. Lets see the below simple guide to tweak performance of react and react native application.

[img]https://4.bp..com/-6hMZMB0kJjk/XFawOHkF52I/AAAAAAAACYg/kXTNzmn5xu0uOcZNrsbQoC_lcSmoJAFFACLcBGAs/s640/al.png[/img]
Programming / Introduction To Realm Mobile Database In React Native by skptricks: 6:29am On Jan 29, 2019
Source : Introduction To Realm Mobile Database In React Native
Nowadays we have a lot of options when deciding to choose a database solution. We have different attractive options each of which has it's strengths and weaknesses. One I have found to be outstanding is Realm database. Realm database can be used by Android, IOS, React and even Xamarin developers.

When Realm was launched in 2014, the goal was to help mobile developers build better apps faster by giving them a robust alternative to SQLite and Core Data. The Realm Mobile Database is a cross-platform database solution that can be used as an alternative to SQLite and Core Data. Compared to these two options, Realm is easier to set up and use. To perform the same operation in Realm, you usually end up writing fewer lines of code than you would with SQLite or Core Data. On performance, Realm is said to be faster and it also offers other modern features such as encryption, JSON support and data change notifications.

[img]https://3.bp..com/-23rc2IT6t48/XE7_ED141cI/AAAAAAAACXQ/gyIy21ppm9EY2LlNc3fBY0i3l5LGFYn1gCLcBGAs/s640/realm.png[/img]
Programming / Understanding Closures In Javascript by skptricks: 1:32pm On Jan 10, 2019
Source : Understanding closures in JavaScript

[img]https://2.bp..com/-CSfsC2igXTw/XB34fvCZXsI/AAAAAAAACRc/kVlEM5pojJcoTFEUgCPAQ-UGfJFefnmoQCLcBGAs/s640/closure.png[/img]

What is a closure?
A closure is a feature in JavaScript where an inner function has access to the outer (enclosing) function’s variables — a scope chain.
The closure has three scope chains:
it has access to its own scope — variables defined between its curly brackets
it has access to the outer function’s variables
it has access to the global variables

When to use Closure?
Closure is useful in hiding implementation detail in JavaScript. In other words, it can be useful to create private variables or functions.
Programming / Javascript Latest Topics : by skptricks: 5:26am On Nov 30, 2018
Programming / Understanding The Javascript For...of Loop by skptricks: 6:20am On Nov 20, 2018
Post Link : Understanding the JavaScript For...of Loop

This tutorial explains how to use For...of loop in javascript programming language. The for...of statement creates a loop iterating over iterable objects, including: built-in String, Array, Array-like objects (e.g., arguments or NodeList), TypedArray, Map, Set, and user-defined iterables. It invokes a custom iteration hook with statements to be executed for the value of each distinct property of the object.

Syntax:
for (variable of iterable) {
statement
}

variable - For every iteration the value of the property is assigned to the the variable.
iterable - An object which has enumerable properties and can be iterated upon.

Understanding the JavaScript For...of Loop
Programming / Understanding Static In Javascript With Examples by skptricks: 5:35am On Nov 15, 2018
Understanding Static In Javascript With Examples

#javascript #react #reactnative #android
Post Link : Understanding Static In Javascript With Examples

This post explains How to use static variables in a Javascript function. JavaScript doesn’t support static variables. It doesn’t provide static keywords. But using a small tip, we can implement function static variables in JavaScript and use them for our purposes.

Understanding Static In Javascript With Examples

[img]https://3.bp..com/-Emv_Ek-RjXk/W-pOuioRyyI/AAAAAAAACIM/xbVXiRbKsR88r6S2p47k8XTWoXg70c2DACLcBGAs/s400/static.png[/img]
Programming / React Native Show Message For Empty Flatlist by skptricks: 8:21am On Nov 12, 2018
Post Link : React Native Show Message for empty FlatList

This tutorial explains how to display empty message "No Data Available" in FlatList view in react native application, when there is not data present in FlatList data source object. Lets consider the scenarios where we have to load bulk data in FlatList view using server side rendering, in that case we need provide appropriate message to user for the request data and their corresponding response. Generally we are come across with below scenarios :
When data is available, then it will display the data in FlatList view using renderItem prop.
When data is not available, then it will display the error message "No Data Available" to user.

React Native Show Message for empty FlatList

[img]https://3.bp..com/-Fwkielx1ej0/W-kZoPUrI9I/AAAAAAAACIA/TsTTW4PNaqQ0UKB5vfBjadPKY2iOgUpMgCLcBGAs/s640/empty.png[/img]
Programming / How To Create Custom Triangle Shape View In React Native by skptricks: 2:06pm On Nov 07, 2018
Post Link : How to Create Custom Triangle Shape View in React Native

In this tutorial we are going to discuss how to create custom triangle design in react native application. Design & implementation of triangle shape is very easy and here we are going to use css stylesheet design for this. Lets follow the below steps and build more understanding.

[img]https://2.bp..com/-flpahLnCMsE/W-LgQVKNFsI/AAAAAAAACGo/Qs7o-UJXCXcQ48FnFsk8Jtbeg_rt3lMWgCLcBGAs/s640/tri.png[/img]
Programming / Rendering Raw HTML In Your React Native Application by skptricks: 4:37am On Nov 05, 2018
Post Link : [url= https://www.skptricks.com/2018/11/rendering-raw-html-in-your-react-native-app.html]Rendering Raw HTML in your React Native application[/url]

This tutorial explains how to render raw HTML code in react native application using WebView component. Basically WebView is a system component for the Android operating system (OS) that allows Android apps to display content from the web directly inside an application.
In this example we are going to Rendering raw HTML code in android application through WebView component, it does need to be manually or pro-grammatically sized, not something natively taken care of by the component. Additionally, styling the contents of the view, to better align with the rest of the UI would require similar solution, passing style sheets into the WebView container or even worse, having style attributes within the HTML itself.
NOTE : In this example we are using source prop of WebView component to display raw HTML code in android or ios screen.

[img]https://4.bp..com/-3doyzMrFXpM/W9-1JcfsVRI/AAAAAAAACGQ/Vn6L9WLApYEGcXsR6mtJhgaQY2l9OdY_QCLcBGAs/s640/re.png[/img]
Programming / How To Add If…else Statements In React JSX by skptricks: 3:45am On Nov 04, 2018
Post Link : How to Add If…Else Statements in React JSX

Sometimes, depending on the conditions, we need to perform various actions particularly in view layout of react application. To do so, we are using the conditional statements inside the render block in react application. This tutorial explains how to perform conditional rendering in react & react native application using simple if and else statement and ternary expression.
As you already know, the React Native uses JSX which is a syntax extension to JavaScript. This syntax extension will be converted to regular JS objects during the compilation.
How to Add If…Else Statements in React JSX

[img]https://2.bp..com/-jlROSM0x9EA/W92JLuux8zI/AAAAAAAACFw/OlVdTiG87TIosonj0_It8oXzt7shyH-gwCLcBGAs/s400/cond.png[/img]
Programming / React Native Check Text Input Is Empty Or Not In Android by skptricks: 7:39pm On Oct 28, 2018
Post Link : React Native Check Text Input is Empty or Not in Android

This tutorial explains how to check TextInput Component entered value in react native application and also we add validation checkpoint in TextInput Component to check whether input value is empty or not. In our previous tutorial we have discussed about TextInput component and their uses in react native application. If you still not remember, then check out the below link for the reference.

React Native Check Text Input is Empty or Not in Android

[img]https://3.bp..com/-oKCW-wle18M/W9X_e-qec8I/AAAAAAAACFg/tHyVXtBo6Zs0182HKPgmyiKy_6T6YpB2QCLcBGAs/s640/te.png[/img]
Programming / Navigating Between Screens Or Activities Using React Navigation Library - Androi by skptricks: 5:15pm On Oct 27, 2018
Post Link : Navigating Between Screens or Activities Using React Navigation Library - Android

This tutorial explains how to move or navigate from one screen to another using React Navigation Library in react native application. In a web browser, you can link to different pages using an anchor (<a>wink tag. When the user clicks on a link, the URL is pushed to the browser history stack. When the user presses the back button, the browser pops the item from the top of the history stack.
Similarly, React Navigation's stack navigator provides a way for your app to transition between screens and manage navigation history.React Navigation is that React Navigation's stack navigator provides the gestures and animations that you would expect on Android and iOS when navigating between routes in the stack.

[img]https://4.bp..com/-B9MF3Fh4MLk/W9SGCQfXp6I/AAAAAAAACEE/8RVlcQsDkoAmLiy1PYhd74zoWHENGI_iACLcBGAs/s640/na.png[/img]

(1) (2) (3) (4) (5) (of 5 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2021 Oluwaseun Osewa. All rights reserved. See How To Advertise. 246
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.