How to Place Text over Image in React Native

By default, the elements of react native are arranged vertically. You can also arrange them horizontally using style properties. In this react native tutorial, let’s check how to place your Text component over the Image component. You can place text over an image in react native in multiple ways. The position style property can be…

How to Decrease Brightness of an Image in React Native

Sometimes, you may want to add images and apply some darkness to them. In this short tutorial, let’s check how to bring down the brightness of an image in React Native. The Image component of react native doesn’t allow to have children. Hence, we are using ImageBackground component which allows children. The idea here is…

How to Import Color Variables to a File in React Native

It’s always good to have common color variables throughout your react native project. This helps you to manage your colors and usage easily. Even though this seems pretty obvious beginners may not know how to add a color file in react native. For example, create a file named Colors.js in your project. Then add the…

How to Remove console.log from Production in React Native

When you are developing a react native app, it’s usual to use console.log function for debugging purposes. Extensive use of console.log may make your app slow. Hence, it would be good to remove console.log from production due to security issues. There are libraries such as redux logger which uses console.log. Manually removing console.log is not…

How to Integrate RazorPay Payment Gateway in React Native

Razorpay is a popular payment gateway among developers, especially in India. In this react native tutorial, let’s check how to add the Razorpay payment gateway in your react native project. I assume you have an account with Razorpay. Get test API keys from Settings > API Keys. Real money is not used when you use…

How to do Wireless Debugging in React Native with Android Devices

Usually, we run react native apps on real Android devices using the USB debugging method. The main issue with this method is that you need your device connected through a USB cable all the time. In this blog post, let’s how to debug or run your react native apps over a wireless network (WiFi). First…

How to Handle Text API Response using Fetch in React Native

We get API responses mostly in JSON format. It’s due to the simplicity and popularity of JSON. Sometimes, developers prefer to give API responses in raw text. In this blog post, let’s check how to handle text responses using Fetch in react native. React Native provides Fetch API for our networking needs. Fetch returns promise…