React Android white screen not starting

When you start the Android application, the following message appears: http://pastebin.com/1jHEfdQ3 The application sometimes crashes in the simulator, but most of the times it just displays a white screen. I can console.log one or two things until the application responds. RR for update does not work. None of the dev tools work. I am at a standstill with what to do at this moment.

I run the reaction native 0.38.0

EDIT:

I tried to clear my gradle and remove and reinstall my node modules.

It should be noted that I am using React Native Navigation, which means that I had to change MainApplicationand MainActivityto the following:

MainActivity:

package com.prayerrequest;

import com.facebook.react.ReactActivity;
import com.reactnativenavigation.NavigationApplication;
import com.airbnb.android.react.maps.MapsPackage;
import com.cmcewen.blurview.BlurViewPackage;
import io.realm.react.RealmReactPackage;
import com.reactnativenavigation.controllers.SplashActivity;


public class MainActivity extends SplashActivity {

}

MainApplication:

package com.prayerrequest;

import com.facebook.react.ReactPackage;

import com.cmcewen.blurview.BlurViewPackage;
import io.realm.react.RealmReactPackage;
import com.airbnb.android.react.maps.MapsPackage;

import com.reactnativenavigation.NavigationApplication;

import java.util.Arrays;
import java.util.List;

  public class MainApplication extends NavigationApplication {
    @Override
     public boolean isDebug() {
         // Make sure you are using BuildConfig from your own application
         return BuildConfig.DEBUG;
     }

     @Override
     public List<ReactPackage> createAdditionalReactPackages() {
        return Arrays.<ReactPackage>asList(
          new RealmReactPackage(),
          new BlurViewPackage(),
          new MapsPackage()
        );
     }
  }

I cross-tuned the React Native page here

+4
2

, " memtrack ( )"

.

: enter image description here

:

memtrack Logcat Error

+1

. , .

, adb- run-android, "ADB ".

, , adb.exe , . run- , AppRegistry.runApplication!:)

, , ADB :

C:\Users\\AppData\Local\Android\SDK\ \adb.exe Windows 10. dell - .

, System Environment, "Path", "Edit", "New" "C:\Users\dell\AppData\Local\Android\sdk\platform-tools".

+1

Source: https://habr.com/ru/post/1669523/


All Articles