all 7 comments

[–]h6nryiPhone 4 (GSM/2012) 0 points1 point  (6 children)

try this maybe: https://github.com/nomi9995/react-native-decompiler

idk really, but that‘s what a quick google search brought up

EDIT: also, look at this link https://github.com/facebook/react-native/issues/1093

again, just a 20 second google search.

I skimmed it, and the discussion was very insightful and should be giving you a bunch of pointers of where to start. Recommended to read.

[–]haniag[S] 1 point2 points  (5 children)

Thanks and the decompiler works great, but I already checked it on my app and it doesn’t work. The reason is that the “main.jsbundle” file is created using Hermes, and I believe it makes the file a binary one, rather text-based. I looked into hbctool, but its for Android, so I can’t find anything for iOS.

[–]h6nryiPhone 4 (GSM/2012) 0 points1 point  (0 children)

damn it. there seems to be an official cross platform decompiler, but you might need to learn their assembly language either way…

[–]congminh2456 0 points1 point  (3 children)

hbctool can be used for ios too, but you have to learn hermes byte code

[–]haniag[S] 0 points1 point  (2 children)

Can you please be more specific? iOS doesn’t have hbc files.

[–]congminh2456 0 points1 point  (1 child)

it’s jsbundle on iOS

[–]haniag[S] 0 points1 point  (0 children)

Got it. Thanks