this loader is used when bundle gets reloaded from dev server . in that case loader expect js bundle to be prefetched and stored in local file . we do that to avoid passing large strings between java and native code and avoid allocating memory in java to fit whole js bundle in it . providing correct @param sourceurl of downloaded bundle is required for js stacktraces towork correctly and allows for source maps to correctly symbolize those . concode_field_sep PlaceHolder placeHolder concode_field_sep JSBundleLoader createAssetLoader concode_elem_sep void loadScript concode_elem_sep JSBundleLoader createRemoteDebuggerBundleLoader concode_elem_sep String getSourceUrl
JSBundleLoader function ( final String arg0 , final String arg1 ) { return new JSBundleLoader ( ) { @ Override public void loadScript ( ReactBridge arg2 ) { arg2 . loadScriptFromNetworkCached ( arg0 , arg1 ) ; } @ Override public String getSourceUrl ( ) { return arg0 ; } } ; }