Since React Native 0.60.4 developers can opt-in to use the Hermes JS Engine. This generates an index.android.bundle
binary that contains Hermes JS bytecode.
The Hermes documentation mentions hbcdump
which is described as a "Hermes bytecode disassembler"
By using hbcdump -pretty-disassemble -c disassemble -out out.txt index.android.bundle
I do get something that is at least a little more human readable but it does not look like it can be compiled back again and is not easy to work with.
How can I decompile Hermes JS bytecode into JavaScript?
Alternatively: How can I modify the bytecode? Is there a tool that understands this bytecode?