Trying to understand new architecture of react-native with JSI
summary
Explains why the JSON async bridge causes dropped taps and slow startup and shows a working replacement: JSI registers C++ host functions that proxy to Java via JNI, registers them on the JS global object, and lets JS call a Java UUID generator synchronously as global.getJSIRandomUUID(); the demo loads a C++ library, uses hostFunction/createFromHostFunction, attaches a JVM thread, calls the Java method, converts the result to a JSI string and returns it; claims lazy turbo-module initialization and Fabric’s direct UI manager access remove bridge choke and improve startup and responsiveness direct JS-to-native bindings TurboModules generate C++ proxies
AI-written summary · about
