Relative Content

Tag Archive for androidreact-native

React native project initialization error

I want to make an app in react native, so like always, I ran the command npx react-native init AppName but then I get the following error [refer images] . It sure creates an AppName folder, but the folder is totally empty except for a .git folder.
I would like to know if there is an error from my end or is react native tripping.

failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable > Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.9.0.aar -> core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1) Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.9.0.aar -> core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1) Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.9.0.aar -> core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1) Duplicate class android.support.v4.os.IResultReceiver […]

Why the text is not vertically aligned with another text in react native on android

I’m encountering an issue with vertically aligning text within a component on Android while using React Native. The text aligns correctly on web platforms, but it’s misaligned when rendered on Android devices. I’ve tried various alignment properties and styles, but haven’t been able to achieve the desired vertical positioning.