react-native-okhttps

1.0.2 • Public • Published

React Native Module for Custom OkHttpClient

This module provides a custom OkHttpClient implementation for React Native apps, allowing you to easily add SSL pinning and other custom network configurations to your Android app.

How does it work?

This module creates a custom OkHttpClientFactory that disables SSL certificate validation. This is useful for development and testing purposes, but should not be used in production without careful consideration of the security implications.

Supported React Native Platforms

  • Android

Getting Started

  1. Install the package:
npm install react-native-okhttps

# or
yarn add react-native-okhttps
  1. Rebuild and reinstall your app:

Note: If you encounter any issues, try uninstalling the app from your device/emulator before rebuilding and reinstalling.

Security Considerations

The current implementation disables SSL certificate validation, which can be a significant security risk. This should only be used for development and testing purposes. For production use, implement proper SSL pinning or certificate validation.

Contributing

We welcome contributions to improve this module. Please submit issues and pull requests on our GitHub repository.

Package Sidebar

Install

npm i react-native-okhttps

Weekly Downloads

8

Version

1.0.2

License

none

Unpacked Size

6.79 kB

Total Files

7

Last publish

Collaborators

  • imhuy