richardfuca / react-native-decompiler

Decompile React Native bundles
GNU Affero General Public License v3.0
103 stars 12 forks source link

Even a hello-world react native app fails to decompile #252

Open houmie opened 1 year ago

houmie commented 1 year ago

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 react-native-decompiler@0.2.2 -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