Networking Module
constructor(reactContext: ReactApplicationContext, @Nullable defaultUserAgent: String, client: OkHttpClient, @Nullable networkInterceptorCreators: List<NetworkInterceptorCreator>)
Parameters
context
the ReactContext of the application
constructor(context: ReactApplicationContext, networkInterceptorCreators: List<NetworkInterceptorCreator>)
Parameters
context
the ReactContext of the application
network Interceptor Creators
list of NetworkInterceptorCreator's whose create() methods would be called to attach the interceptors to the client.
Parameters
context
the ReactContext of the application
default User Agent
the User-Agent header that will be set for all requests where the caller does not provide one explicitly