Month: August 2022

How to Show Images According to a Preferred Aspect Ratio in React Native

Last Updated on August 17, 2022. Sometimes you may want to show images according to a given aspect ratio instead of a fixed height. Let’s check how to show images with a predefined aspect ratio in react native. In this react native example, I will show you images in a 2/3 aspect ratio. The 2/3 …

How to Show Images According to a Preferred Aspect Ratio in React Native Read More »

How to Fix Android Gradle plugin requires Java 11 to run React Native Error

Last Updated on August 13, 2022. I was trying to run a new react native project using my Android emulator and I faced an unexpected react native issue that says the Android Gradle plugin requires Java 11 to run. Following is the complete error. The issue is with the JDK. As you can see, the …

How to Fix Android Gradle plugin requires Java 11 to run React Native Error Read More »

How to Fix ‘while resolving: undefined@undefined’ Error while Creating new React Native Project

Last Updated on August 13, 2022. Recently, I faced an unexpected react native error. I was creating a new React Native project with the command npx react-native init and I was shown an undefined@undefined error in the terminal. Following is the complete error. Following is the solution for this react native error. Go to users/YourName/ …

How to Fix ‘while resolving: undefined@undefined’ Error while Creating new React Native Project Read More »