NetworkingModule

constructor(reactContext: ReactApplicationContext, @Nullable defaultUserAgent: String, client: OkHttpClient, @Nullable networkInterceptorCreators: List<NetworkInterceptorCreator>)


constructor(context: ReactApplicationContext)

Parameters

context

the ReactContext of the application


constructor(context: ReactApplicationContext, networkInterceptorCreators: List<NetworkInterceptorCreator>)

Parameters

context

the ReactContext of the application

networkInterceptorCreators

list of NetworkInterceptorCreator's whose create() methods would be called to attach the interceptors to the client.


constructor(context: ReactApplicationContext, defaultUserAgent: String)

Parameters

context

the ReactContext of the application

defaultUserAgent

the User-Agent header that will be set for all requests where the caller does not provide one explicitly