Example to Get Device Information in React Native

This is an Example to Get Device Information in React Native. To get the device information in React Native will use the react-native-device-info library. In this example, we will show you how to get all the information about the device using a single library. We will get the following details in this example. Method Return Type  iOS … Read moreExample to Get Device Information in React Native

Example to Hide Show Component in React Native

This is an Example to Hide Show Component in React Native. To do this we will use a conditional operator and state. When we change the state view will re-render itself and after checking the state we will return the view or null. In this example, we are hiding and showing the image on a click of a … Read moreExample to Hide Show Component in React Native

React Native Add Items to ScrollView using Loop

This is an Example of React Native Add Items to ScrollView using Loop.  In this example, you will be having the basic idea about the loop in JavaScript. We are making a List but here we are not using any ListView instead we are making using the for loop and scroll view. We are attaching a … Read moreReact Native Add Items to ScrollView using Loop

Example to Call Functions of Other Class From Current Class in React Native

This is an Example to Call Functions of Other Class From Current Class in React Native. This can be usually seen in object-oriented languages like Java; Where we make an object of the other class and call the function of it. In the case of React Native, you can also do the same by making an … Read moreExample to Call Functions of Other Class From Current Class in React Native

React Native Get Unique ID of Device

Every mobile device in the world has its unique ID which is a combination of Alphabetic and Numeric characters. To get the device’s Unique ID and we can use the react-native-device-info library. The unique device ID is used to identify a device uniquely. For example, if you are making an application which requires a unique device dependent … Read moreReact Native Get Unique ID of Device

React Native Show SuperScript and SubScript

React Native SuperScript SubScript is a React Native Version of tags available in HTML known as <sup> superscript and <sub> subscript. Superscript tag sets the half of character above on the text writing line like (10am) and same as but in a different manner the Subscript tag is opposite of superscript, In subscript tag, the next character would be half down to … Read moreReact Native Show SuperScript and SubScript

React Native Global Scope Variables

We all know either we are developing any web or any mobile app, We always need Global Scope Variables. If you are not familiar with global variable just think about the variables which can be accessed from any screen/activity after first initialization. They can be used on any screen as local variables but the difference is their scope is global. … Read moreReact Native Global Scope Variables