React Native compiles your code to native code for the respective OS, either Android or iOS.
After building my first React Native app, I’m now convinced it’s the future.
Taylor Milliman

This is not correct. The code you write is compiled to a single JavaScript file and it is bundled with APK or IPA file. When the app runs native views are created as per the instructions in the JavaScript file. That’s how it works.