Add OkHttpClient to NetworkingModule constructor
Reviewed By: sahrens Differential Revision: D2600266 fb-gh-sync-id: 168195567d0dca819e53d5e3f0f7cfb24f415b63
This commit is contained in:
parent
0d14d0f1ce
commit
f96c92d75c
|
@ -73,6 +73,10 @@ public final class NetworkingModule extends ReactContextBaseJavaModule {
|
|||
this(reactContext, defaultUserAgent, OkHttpClientProvider.getOkHttpClient());
|
||||
}
|
||||
|
||||
public NetworkingModule(ReactApplicationContext reactContext, OkHttpClient client) {
|
||||
this(reactContext, null, client);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RCTNetworking";
|
||||
|
|
Loading…
Reference in New Issue