react-native-decompiler icon indicating copy to clipboard operation
react-native-decompiler copied to clipboard

Even a hello-world react native app fails to decompile

Open houmie opened this issue 2 years ago • 1 comments

I'm not sure if this project still works. I created a very basic app.

$npm install
$npx react-native init ObfuscationDemo

Created a signed APK and tried to decompile it.

  1. Converted APK to .jar via dex2jar
  2. Decompile .jar file via jd-gui

Then I try to to compile the javascript files in app-release/assets/index.android.bundle. But it doesn't work.

npx [email protected] -i app-release/assets/index.android.bundle -o ./output
Reading file...
[!] No modules were found!
[!] Possible reasons:
[!] - The React Native app is unbundled. If it is, export the "js-modules" folder from the app and provide it as the --js-modules argument
[!] - The bundle is a binary/encrypted file (ex. Facebook, Instagram). These files are not supported
[!] - The provided Webpack bundle input is not or does not contain the entrypoint bundle
[!] - The file provided is not a React Native or Webpack bundle.

Many Thanks

houmie avatar Mar 08 '23 18:03 houmie

Same issue

ayboraa avatar Mar 08 '25 10:03 ayboraa