react-native-network-logger icon indicating copy to clipboard operation
react-native-network-logger copied to clipboard

Export all Logs

Open Spencer-Yoder opened this issue 4 years ago • 1 comments

Feature Request

Having the ability to export the full list of logged request to a JSON file stored locally on the device.

I know the project right now doesn't have any dependencies (that's really nice), but the easiest and most practical way to do it would include using a package like react-native-fs.

Additional context

Spencer-Yoder avatar Sep 22 '20 00:09 Spencer-Yoder

Good idea @Spencer-Yoder. I'm open to adding dependencies to the project, although quite keen not to add native dependencies like react-native-fs as the would stop the library working with expo.

There is already an option to "Share full request" for each individual request, which then gives you the option to save to a file, email or copy etc. I'm not sure if there is a limitation on how long the share string can be, but we could potentially use that to share all requests without installing anything?

alexbrazier avatar Sep 22 '20 18:09 alexbrazier