Add OkHttpClient to NetworkingModule constructor

Reviewed By: sahrens

Differential Revision: D2600266

fb-gh-sync-id: 168195567d0dca819e53d5e3f0f7cfb24f415b63
This commit is contained in:
Elliot Lynde 2015-10-30 09:18:18 -07:00 committed by facebook-github-bot-9
parent 0d14d0f1ce
commit f96c92d75c
1 changed files with 4 additions and 0 deletions

View File

@ -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";