Month: June 2019

How to Screen Record and Take Screenshots from Android Emulator without using Android Studio

If your PC has low configurations then opening Android emulator and Android Studio simultaneously may make it slow. In this blog post, I explain how to take screenshot as well as screen record from Android emulator without opening Android Studio. First of all you have to launch Android emulator using command prompt / terminal. If …

How to Screen Record and Take Screenshots from Android Emulator without using Android Studio Read More »

How to Show SuperScript and SubScript in React Native Text

Last Updated on December 13, 2020. Sometimes you may need to show superscript and subscript through react native text component. Superscript characters are small and are slightly above the normal baseline whereas subscript characters appear slightly below. You can use lineHeight prop of react native text component to show superscript and subscript. With lineHeight you …

How to Show SuperScript and SubScript in React Native Text Read More »

How to Set OnPress Function to View in React Native

Last Updated on December 13, 2020. In react native, we use onPress prop in touchable components to enable pressing functionality. But, what about having onPress function for the View component itself? This feature is one of the things I was missing when I compare react native to native Android development. If you are using react …

How to Set OnPress Function to View in React Native Read More »

How to Check a Variable is Undefined in React Native

While developing mobile apps with react native, chances are high that you may come across some scenarios where the value of the variable you declared becomes undefined. So, how to check if a variable is undefined or not in react native as well as JavaScript? Earlier I have written about how to check undefined property …

How to Check a Variable is Undefined in React Native Read More »

How to Convert Text to Upper Case or Lower Case in React Native

Last Updated on December 13, 2020. Upper case and lower case conversions of text are used for many purposes including form filling and authentication. Converting text to upper case or to lower case is pretty easy in react native. You can use JavaScript methods toLowerCase() as well as toUpperCase() on strings. The usage case of …

How to Convert Text to Upper Case or Lower Case in React Native Read More »

How to Make the Screen Refresh when Navigating Back in React Native

Last Updated on December 10, 2020. In this blog post, I show you how to make the screen refresh when you navigate back in react native using react navigation library. Most of the react native projects out there prefer react navigation library for the navigation solutions. Usually, when a user navigates back using the back …

How to Make the Screen Refresh when Navigating Back in React Native Read More »

How to Migrate Android Support Packages into AndroidX in React Native 0.59

Last Updated on July 4, 2019. Update: React Native has released new stable version 0.60. It comes with AndroidX support but still, you may need to migrate your native libraries to AndroidX yourself. React Native team also recommends using a tool named Jetifier to patch node modules for a temporary solution. In late 2018, Google …

How to Migrate Android Support Packages into AndroidX in React Native 0.59 Read More »