SReverseby Simpa Labs

React Native

Reading React Native code when the bundle is unreadable

The file is there and no editor makes sense of it, or the path you expected is empty. React Native bundles arrive in several forms, and only one of them is plain JavaScript.

Five states that all look unreadable

A React Native bundle is JavaScript that has usually been minified, and a release build frequently compiles it to Hermes bytecode as well. On top of that the file can be compressed, encoded, renamed, or absent from the package because the app downloads it after installation. Each state needs a different first move, and identifying the state is faster than trying tools at random.

  • Minified JavaScript is readable. The names are short and the file has no line breaks, so a formatter restores the structure and the request logic becomes legible.
  • A Hermes bytecode file is a binary program. Check its magic value and version with a compatible bytecode parser, then read the string table and instructions.
  • A compressed or encoded bundle needs a container step. Check a suspected container with its decoder and validate the result. Trace the loader when the format is custom; an unknown header alone does not establish encryption or compression.
  • Trace a missing bundle through the loader. Check renamed assets and installed splits, then inspect update storage when the app loads downloaded code.
  • A renamed or relocated bundle still loads. The path is a build setting, so searching for the default name and stopping is how a bundle gets missed.

Start with the first bytes and the file list

Begin by listing every asset in the package and looking for a file of the right size, using size to shortlist files before checking their format and loader path. That list also shows when two bundles exist, which happens during a migration from a plain bundle to a compiled one.

Reading the first bytes is a two-minute test that removes most of the guesswork. Validate text with a JavaScript parser, decode recognized compression formats and validate Hermes magic and version with a compatible parser. A printable prefix alone does not establish the format of the whole file. Then compare the file against a capture: when an endpoint from the traffic appears in the bundle, follow its references to the request builder and confirm that the app loads this copy.

When the bundle is fetched after installation

An app with over-the-air updates can run its embedded bundle or a downloaded update. In Expo, check isEmbeddedLaunch, updateId and runtimeVersion to identify the code in use. Read the loaded bundle from its recorded location and keep the embedded copy for comparison. Check the update URL and channel as well: they select which updates the build can receive.

When the strings have been encoded

When request values are missing from readable code, follow the values from their point of use. They can come from decoded strings, native modules, remote configuration or another loaded bundle. The transformation is applied by a module inside the bundle or by a native component the bundle calls, and the reversal has two routes.

  • Find the decode routine in the bundle. A string table held as an array of encoded values behind an index function is a common pattern, and the array and the function are both in the file you already have.
  • Read decoded values from the running app. Place an observation point after the decode step and record the plaintext as the app uses it, which avoids reimplementing the decoder at all.

Working order

Identify the state, then follow the state to its tool. A formatted plain bundle goes straight to a search for endpoints and the HTTP wrapper. Bytecode goes to a disassembler and a string extraction. A container goes to a decompression step first. A missing bundle goes to the device. Once the code is readable the work matches any other React Native app: find the request construction, reproduce it, and verify against the server.

SReverse delivers the full APK's API in Python, JavaScript/TypeScript, Postman and complete documentation. Projects start at $70 and most finish in 24 to 72 hours.

Reviewed 19 October 2026 · SReverse research desk

Start your full APK reconstruction

Send the full APK

Projects start at $70. Choose WhatsApp or email, then attach the APK in the app that opens. We reply within one hour with the next step and send the fixed quote after review.

Want us to contact you?