1.0.1 • Published 5 months ago

react-native-chucker v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

1.0.1

5 months ago

1.0.0

5 months ago