Training

How to Make an Image Rotate with Animation in React Native

In this React Native tutorial, I show you how to rotate an image continuously in React Native. For Animation, we have to use Animated library from React Native. In the componentDidMount lifecycle Animated.loop is used to continue the animation as a loop. We also set Animated.Value as 0 in the state. Animated.timing is used to …

How to Make an Image Rotate with Animation in React Native Read More »

How to Add an Icon inside TextInput in React Native

Sometimes, you may want to show icon inside your TextInput, specifically saying- an icon aligned to the left of the TextInput. React Native TextInput has inlineImageLeft prop to add icon inside it. Unfortunately inlineImageLeft supports only Android platform. There’s also another prop named inlineImagePadding to adjust the padding of the image inside TextInput. As the …

How to Add an Icon inside TextInput in React Native Read More »

How to Change App icons and Notification Icons in React Native (Android)

Want to change the default app icon and notification icon of your React Native app in Android? Then you are at the right place. It would have been a tough task if there’s no Android Asset Studio. Android Asset studio helps to create launcher icons as well as notification icons in proper formats. For app …

How to Change App icons and Notification Icons in React Native (Android) Read More »

How to Add Pull Down to Refresh Feature in React Native

Pull down to refresh is a cool feature we usually see in Android apps. It helps users to refresh a list or collection of data. In react native, you can use RefreshControl component to implement pull down to refresh feature. RefreshControl works as a prop for components such as ScrollView, ListView and Flatlist. See the …

How to Add Pull Down to Refresh Feature in React Native Read More »

How to Add Bottom Tab Navigator in React Native

If there were no libraries such as react-navigation, navigation in react native would have been an uphill task. In this blog post, you can learn how to create a bottom tab navigator in your react native project. First of all, add react-navigation in your project with command npm install –save react-navigation . After that add …

How to Add Bottom Tab Navigator in React Native Read More »

How to Add Shadows for Text Component in React Native

Text component in React Native appears to be simple but it has a lot of props for customization and usability. Sometimes, we want to make Text component more stylish by having shadows with vibrant colors. In such cases, you don’t need to rely on any third party component libraries- react native text itself has such …

How to Add Shadows for Text Component in React Native Read More »

How to add Custom Font in React Native (Android)

React Native supports only few fonts out of the box for Android platform. Hence, you may always want to add custom fonts in your React Native project to make the app more stylish. Adding custom fonts in React Native for Android platform is very simple. Just navigate to YourProject>android>app>src>main and create a folder named assets. …

How to add Custom Font in React Native (Android) Read More »

How to Make Flatlist Rerender without changing the Data

Flatlist is one of the most used components in React Native. It is super easy to implement and performs better than components like Listview. Flatlist is fully cross platform and it has cool features such as header, footer, scroll to index, pull to refresh etc. Sometimes, you might need to make the flatlist re-render but …

How to Make Flatlist Rerender without changing the Data Read More »

How to Change the Placeholder Text Color of TextInput Component in React Native

We use TextInput component in almost all React Native applications. Because of that, we usually try to customize or stylize textinput at maximum extent. In this blog post, I will tell you how to change the color of the hint text in TextInput. All you need is to use placeholderTextColor prop of textinput. Refer the …

How to Change the Placeholder Text Color of TextInput Component in React Native Read More »