How to create circle images in React Native

February 22, 2022 A Goodman

To create perfectly round images in React Native, just give the borderRadius property a very high value. Example The code: That’s it. Further reading: How to Get the Window Width & Height in React Native How…

React Native: How to add shadow effects on Android

February 12, 2023 A Goodman

To add shadow effects on Android, you can use the elevation property: You can control the color of the shadow by using the shadowColor property like this: It is important to know that the shadowColor props…

Clear all data and settings from iOS simulator

March 15, 2022 A Goodman

To remove all data and settings from an iOS simulator, just click Device then select Erase All Content and Settings from the drop-down menu: A confirm dialog will show up. Click on the Erase button: The…

How to create round buttons in React Native

June 26, 2022 A Goodman

The example below will show you how to create round buttons in React Native. We will use TouchableOpacity instead of the basic built-in Button component. The Code Replace the default code in App.js with the following:…

React Navigation: useRoute hook example

January 8, 2023 A Goodman

React Navigation provides a hook that helps you access the route object. It is the useRoute hook. This article will walk you through a complete example of using this hook in a React Native mobile app….

React Navigation 6: Hiding bottom tab on a specific screen

January 19, 2022 A Goodman

React Navigation is a great library for React Native to navigate. If you’re using createBottomTabNavigator and want to hide the bottom tab bar on a specific screen, just set the tabBarStyle option to { display: ‘none’…

Using Font Awesome Icons in React Native

February 22, 2022 A Goodman

Font Awesome is a high-quality icon toolkit that can help you create charming user interfaces. This tutorial will show you how to use Font Awesome icons in a React Native app. Adding Font Awesome to your…

React Navigation 6: Header background and header title color

January 19, 2022 A Goodman

When using React Navigation 6 to route and navigate your React Native apps, the header bar background color and the header title color are customizable. To set the header background color, use this option: For the…

React Navigation: Center the Header Title on Android

January 19, 2022 A Goodman

By default, the header title of a React Native app that uses React Navigation 6 is on the left side. To center it, just add this option: Full example: Screenshot: Further reading: React Native: How to…

React Native: Please accept all necessary Android SDK licenses…

June 27, 2022 A Goodman

This short and straightforward article shows you how to fix an error that often happens when working with React Native. The Problem When trying to run a React Native app on a virtual Android device with…

React Navigation: Dynamic header title (with hooks)

February 12, 2023 A Goodman

This article shows you how to dynamically update the header title of a screen in a React Native app. We will use React Native latest version, the useState hook, the useEffect hook, and the React Navigation…

Null is not an object (evaluating ‘_RNGestureHandlerModule…

March 15, 2022 A Goodman

When developing a React Native project on my Mac, I fall into a problem when running npm run ios. My project is using some third-party libraries. The Error The message: Null is not an object (evaluating…

1 38 39 40 41