javaScriptContextHolder

Do not use this anymore. Use getRuntimeExecutor instead. Get the C pointer (as a long) to the JavaScriptCore context associated with this instance.

Use the following pattern to ensure that the JS context is not cleared while you are using it: JavaScriptContextHolder jsContext = reactContext.getJavaScriptContextHolder() synchronized(jsContext) { nativeThingNeedingJsContext(jsContext.get()); }