+ 2
React Native
I've learnt that i can create native apps using react native but can anyone tell me how it works? does it transpile javascript to java(example for android), and then create dex file, or js files remain the same? thanks in advance:)
4 Respostas
+ 2
In React-native, JS doesn't transpiles to java for android, js files do remains the same.
The React-native app is JIT compiled, it uses the JS core(which is VM for JS), this will calls the bridge, then the bridge, which does the communication between ur js code and native apis/modules, native apis/modules does the work and then it finally renders the output on the screen. See this diagram for more clarification:
https://i.stack.imgur.com/mToBH.jpg
If u want to understand it more in detail, then there is a question same asked at stack overflow, u can go there:
https://cutt.ly/EXrm3Yk
0
ok..i think i got it..thanks
0
hello I wanted your help I am developing a mobile tracking application by react native integrating mapbox and for the moment I have problems to do the tracking from one place to another thank you for confirming the reception and helping me
0
Here is the blog for perfect React Native
https://itechnolabs.ca/pros-and-cons-of-react-native-app-development/