I am working on a React-Native App client that needs to generate a JSON file and send it to a s3 bucket. I don't quite know how to do the two steps of this process:
First I'd need o be able to generate a JSON file with some variables from my App. For these I found https://www.npmjs.com/package/react-native-fs. The problem is I don't quite know if it would work correctly, or even where it would save the file. I wouldn't want to pollute the user's phone, and rather have the file be stored in a safe location.
Then I'd need to be able to send this file over to the S3 bucket. I think https://www.npmjs.com/package/react-native-aws3 is the best option, but I'm not sure if it is.
What would be the recommended way to do this?