react-native-chucker
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-native-chucker

react-native-chucker simplifies the inspection of HTTP(S) requests/responses fired by your React Native App. react-native-chucker works as an OkHttp Interceptor persisting all those events inside your application, and providing a UI for inspecting and sharing their content.

Apps using react-native-chucker will display a notification showing a summary of ongoing HTTP activity. Tapping on the notification launches the full react-native-chucker UI. Apps can optionally suppress the notification, and launch the react-native-chucker UI directly from within their own interface.

Installation

npm install react-native-chucker

OR

yarn add react-native-chucker

Android

Install Dependencies

  • Insert the following line in import section in android/app/src/main/.../MainApplication.java:
import com.chucker.CustomNetworkModule;
import com.facebook.react.modules.network.OkHttpClientProvider;
  • Insert the following lines inside the onCreate block in android/app/src/main/.../MainApplication.java:
OkHttpClientProvider.setOkHttpClientFactory(new CustomNetworkModule(this));

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-chucker

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

17.6 kB

Total Files

21

Last publish

Collaborators

  • shivamkumar28