Use network APIClient reactContext if already set (#7426)
This commit is contained in:
parent
275f40f8d9
commit
72f7c639c7
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ public class Network {
|
|||
private static final Promise emptyPromise = new ResolvePromise();
|
||||
|
||||
public static void init(Context context) {
|
||||
final ReactApplicationContext reactContext = new ReactApplicationContext(context);
|
||||
final ReactApplicationContext reactContext = (APIClientModule.context == null) ? new ReactApplicationContext(context) : APIClientModule.context;
|
||||
clientModule = new APIClientModule(reactContext);
|
||||
createClientOptions();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue