Last active
April 10, 2023 04:27
-
-
Save Doko-Demo-Doa/21a55ad72648fa54f4a3e7ecfa8a5017 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.yourapp; | |
import com.facebook.react.modules.network.OkHttpClientProvider; // Import this. | |
... | |
public class MainApplication extends Application implements ReactApplication { | |
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { | |
... | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
SoLoader.init(this, /* native exopackage */ false); | |
OkHttpClientProvider.setOkHttpClientFactory(new CustomNetworkModule()); // Add this line | |
} | |
} |
Author
Doko-Demo-Doa
commented
Apr 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment