-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
Is this a bug report?
(Yes)
Have you read the Contributing Guidelines?
(No)
Environment
react-native -v
: 2.0.1node -v
: v8.4.0npm -v
: 5.3.0
Then, specify:
- Target Platform: Android
- Development Operating System: macOS
- Build tools: Android Studio
Steps to Reproduce
(Write your steps here:)
use OkHttpClientProvider.replaceOkHttpClient(customClient);
Expected Behavior
Can use customClient
Actual Behavior
Every time you re-create a new one internally OkHttpClient
Because the following code causes the problem(this is NetworkingModule.java):
public NetworkingModule(final ReactApplicationContext context) {
this(context, null, OkHttpClientProvider.createClient(), null);
}
Every time it's new
but
Will not be used to the customClient
vdesmet93 and muratkarakas
Metadata
Metadata
Assignees
Labels
StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.