Posts

React Native - State and Props - Mobile Application development

Image
In this article,  we will talk about State  and Props State React components has a built-in state object. The state is mutable. This designates that the state can be updated in the future. The state is generally initialized in the constructor and then call setState when we want to change it. In this example, we engender a Text component with state data. The content of the Text component will be updated by clicking a button. The event onPress calls the setState, and it updates the state "knfState" text. First, You must set up your local development environment. Follow the below link to set up your local environment.   https://www.knowledgefactory.net/2021/01/react-native-environment-setup-create-demo.html After executing the commands mentioned in this  link , a folder with a specified name is created with the following contents. In this example, we engender a Text component with state data. The content of the Text component will be updated by clicking a button. The event on

React Native - Generate QR Code - Mobile Application development

Image
Congratulations! You are standing in the right place! In this article,  we are making a TextInput to get the value for QR Code and after clicking on “Generate QR Code” it will engender the QR Code. QR Code withal kenned as Quick Response Code is a trademark for the two-dimensional barcode. QR Code is a machine-readable block enabled code for encoding numeric value and alphabetic value. The QR Code stores information within a block of images and can store multiple types of information, They are very expeditious responsible and can be readable expeditiously and decoded. Screenshot Implementation: First, You must set up your local development environment. Follow the below link to set up your local environment.   https://www.knowledgefactory.net/2021/01/react-native-environment-setup-create-demo.html After executing the commands mentioned in this  link , a folder with a specified name is created with the following contents. Install react-native-svg and react-native-qrcode-svg package, whic

React Native - WebView - Mobile Application development

Image
Congratulations! You are standing in the right place! In this article,  we will learn how to utilize WebView. It is utilized when you want to render a web page to your mobile app inline. React Native WebView is a modern, well-fortified, and cross-platform WebView for React Native. It is intended to be a supersession for the built-in WebView Implementation: First, You must set up your local development environment. Follow the below link to set up your local environment.   https://www.knowledgefactory.net/2021/01/react-native-environment-setup-create-demo.html After executing the commands mentioned in this  link , a folder with a specified name is created with the following contents. Install  react -native-webview npm i  react-native-webview Next, we are going to edit the  App.js  file and write the below code. Import  WebView,  StyleSheet , View component in our project. import React from 'react' ; import { StyleSheet, View, } from 'react-native' ; import { W

React Native - MD5 -Mobile Application development

Image
Hello everyone, In this article, we would be going  to Convert any Input Value in MD5 in React Native The MD5 message-digest algorithm is a widely used hash function producing a 128-bit hash value. Although MD5 was initially designed to be used as a cryptographic hash function, it has been found to suffer from extensive vulnerabilities. It can still be used as a checksum to verify data integrity, but only against unintentional corruption. It remains suitable for other non-cryptographic purposes, for example for determining the partition for a particular key in a partitioned database. Implementation: First, You must set up your local development environment. Follow the below link to set up your local environment.   https://www.knowledgefactory.net/2021/01/react-native-environment-setup-create-demo.html After executing the commands mentioned in this  link , a folder with a specified name is created with the following contents. Install MD5 npm install md5 --save Next, we are goi