Control Device Brightness from React Native App

This is an Example to Control Device Brightness from React Native App using react-native-screen-brightness for Android and IOS. You generally do it in your day to day life but what if you can control the brightness from your own application? Yes, you can do that with the help of the react-native-screen-brightness library. You can see … Read moreControl Device Brightness from React Native App

Keep the Screen Awake/On for the Infinite Time in React Native

This is an Example to Keep the Screen Awake/On for the Infinite Time in React Native using react-native-keep-awake for Android and IOS. Before starting the example I just want you to think about this feature. Have you ever experienced Screen Awake feature in any app? Maybe you have the answer or maybe not but let me … Read moreKeep the Screen Awake/On for the Infinite Time in React Native

How to set onPress on a View in React Native

In this post, we will see How to set onPress on a View in React Native. While working with React Native components we need to set onPress on different situations to do that we have to surround it with the React Native Touchables but what if we can set onPress on the View container itself. You can … Read moreHow to set onPress on a View in React Native

React Native Get Clicked Location of Touchscreen Using PanResponder

To get the clicked location of touchscreen React Native provides an easy to use the component called PanResponder. it is used to recognize the touch on both Android and iOS mobile phone screens. This example is for those who want to start the gaming applications development in React Native. To Import PanResponder in Code

Use … Read moreReact Native Get Clicked Location of Touchscreen Using PanResponder

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

Example of Pinch to Zoom Image in React Native

This is an Example of Pinch to Zoom Image in React Native. We are going to use react-native-image-zoom-viewer library for the pinch to zoom effect. While making a mobile app which has Image(s) we always need a pinch to zoom effect. It makes the App experience better as the user can easily see more details … Read moreExample of Pinch to Zoom Image in React Native