Reputation: 5459
How can I create a native file on iOS?
For Android on react-native, it looks like react-native-fs will work.
Has anyone found a react-native component for iOS to create and write files?
My goal is to send an email with attachment. The project react-native-mail is a great react-native component to send email including file attachments that supports both Android and iOS.
I just need to figure out how to do file I/O in react-native. Else I need to learn how to write my a react-native iOS Native Module to perform file I/O.
https://www.npmjs.com/package/react-native-mail
Thanks in advance for any direction,
Upvotes: 3
Views: 4008
Reputation: 40924
There's a database of 3rd party modules: https://js.coach/
Through it I found the same module you did. It looks like it has iOS support too? https://github.com/johanneslumpe/react-native-fs
Upvotes: 2