Example of onLongPress on TouchableOpacity in React Native

This is an Example of onLongPress on TouchableOpacity in React Native. As the topic name describes itself, we will set onLongPress on TouchableOpacity button. This is a very common thing that we experience in our daily use like we use to get edit or delete option on long press of any list element or a button. In … Read moreExample of onLongPress on TouchableOpacity in React Native

Handling Android Back Button Press in React Native

When the user presses the Android hardware back button in React Native, react-navigation will pop a screen or exit the app if there are no screens to pop. This is the sensible default behavior, but there are situations when you might want to implement custom handling. This is where handling android back button is useful. … Read moreHandling Android Back Button Press in React Native

React Native NetInfo

Here is an example of React Native NetInfo. React Native NetInfo exposes information about online/offline status. NetInfo notifies continuously about the network state whether it is online or offline. Information about the net connection is very helpful when you are making an application which only works in online mode. The best example that you have … Read moreReact Native NetInfo

Get Application State using AppState in React Native

This is an example to Get Application State using AppState in React Native. React Native AppState let you know the currents state of the application. It will give you the information that Application is in the foreground or in the background, and will notify you on the change of state. AppState is frequently used to determine the … Read moreGet Application State using AppState in React Native