wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.45k stars 706 forks source link

white blank screen in release build from new clone #1779

Closed kelvin-dev closed 2 years ago

kelvin-dev commented 2 years ago

Description:

Cannot evaluate the sourcebase in release build, the app gets white blank screen on Android;

Steps to reproduce:

> react-native-ui-lib@5.0.0 android D:\Demos\react-native-ui-lib
> react-native run-android "--variant=release"

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 5099 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...
WARNING:: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Task :app:installRelease
Installing APK 'app-release.apk' on 'Custom Phone_1 - 6.0' for app:release
Installed on 1 device.

BUILD SUCCESSFUL in 48s
245 actionable tasks: 3 executed, 242 up-to-date
info Connecting to the development server...
info Starting the app on "192.168.96.103:5555"...
Starting: Intent { cmp=com.rnuilib/.MainActivity }

Expected behavior

the app should work properly like what it functions in debug mode

Code snippet

> react-native run-android "--variant=release"

Screenshots/Video

Environment

D:\Demos\react-native-ui-lib>react-native info
info Fetching system and libraries information...
System:
    OS: Windows 10 10.0.19042
  Binaries:
    Node: 14.17.4 - D:\Program Files\nodejs\node.EXE
    Yarn: 1.22.4 - D:\Roaming\npm\yarn.CMD
    npm: 6.14.5 - D:\Roaming\npm\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK:
      Android NDK: 18.1.5063045
    Windows SDK:
      AllowDevelopmentWithoutDevLicense: Enabled
      AllowAllTrustedApps: Enabled
  IDEs:
    Android Studio: Not Found
    Visual Studio: 16.8.30907.101 (Visual Studio Professional 2019)
  Languages:
    Java: 14.0.1 - /cygdrive/c/Program Files/OpenJDK/jdk-14.0.1/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.66.4 => 0.66.4
    react-native-windows: Not Found

Affected platforms

kelvin-dev commented 2 years ago

logcat errors

image

kelvin-dev commented 2 years ago

below logs for further investigation

image

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.