1

I have a React Native project with about 3 or 4 screens.

After I decompiled the generated Android classes.dex file, I only found two Java classes. If I'm correct that React Native compiles your components to native Android classes, where are all the Android classes for those screens?

enter image description here

Please note: The APK was bundled correctly as it runs fine on Android devices.

Also I ran the following command to create the APK:

react-native bundle --platform android --dev false --entry-file index.js \
            --bundle-output android/app/src/main/assets/index.android.bundle \
            --assets-dest android/app/src/main/res/

Thanks!

Adrian Bartyczak
  • 188
  • 3
  • 14
  • I think React Native will not compiles your components to native Android classes... – maltoze Jan 21 '21 at 02:01
  • Here is a similar problem: [Does React Native compile JavaScript into Java for Android?](https://stackoverflow.com/questions/41124338/does-react-native-compile-javascript-into-java-for-android) – maltoze Jan 21 '21 at 02:27
  • Hi. Thanks! This is exactly what I was looking for. – Adrian Bartyczak Jan 21 '21 at 02:29
  • React Native will not compile your components to native Android classes. Here is a similar question: [Does React Native compile JavaScript into Java for Android?](https://stackoverflow.com/questions/41124338/does-react-native-compile-javascript-into-java-for-android) – maltoze Jan 21 '21 at 02:51

0 Answers0