Skip to main content

Posts

Showing posts from 2023
Error: [Reanimated] valueUnpacker is not a worklet, js engine: hermes Fixed it with a version downgrade: npm install react-native-reanimated@3.4.2 And editing the babel.config.js file: module.exports = {   presets: ['module:metro-react-native-babel-preset'],   plugins: ['react-native-reanimated/plugin'], }; 
Splash screen still doesn't load first in React Native app Step 1 For android: /android/app/src/main/res/layout add an xml file called launch_screen.xml and have the code in it like that: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical" android:layout_width="match_parent"     android:layout_height="match_parent">     <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/gatepasssplash" android:scaleType="centerCrop" /> </RelativeLayout> Step 2 inside android\app\src\main\java\MainActivity.java add two lines on top as below: import android.os.Bundle; import org.devio.rn.splashscreen.SplashScreen; and add  public class MainActivity extends ReactActivity { @Override     protected void onCreate(Bundle savedInst...
Fetch not working in release APK - React Native Make sure your config.urlServer is not an HTTP endpoint but should be HTTPS. Latest RN versions target recent Android SDK that blocks insecure HTTP connections automatically. Quick Fix: Adding android:usesCleartextTraffic="true" in <application> tag in android\app\src\main\AndroidManifest.xml will work.
 react native vector icons won't show in android device Open android/app/build.gradle and add the following: apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"