title: How to create a native file in react-native on iOS?
body: <p>How can I create a native file on iOS?</p>
  
  <p>For Android on react-native, it looks like <a href="https://github.com/johanneslumpe/react-native-fs" rel="nofollow">react-native-fs</a> will work.</p>
  
  <p>Has anyone found a react-native component for iOS to create and write files?</p>
  
  <p>My goal is to send an email with attachment. The project <a href="https://www.npmjs.com/package/react-native-mail" rel="nofollow">react-native-mail</a> is a great react-native component to send email including file attachments that supports <strong><em>both</em></strong> Android and iOS. </p>
  
  <p>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 <a href="https://facebook.github.io/react-native/docs/native-modules-ios.html" rel="nofollow">react-native iOS Native Module</a> to perform file I/O. </p>
  
  <p><a href="https://www.npmjs.com/package/react-native-mail" rel="nofollow">https://www.npmjs.com/package/react-native-mail</a></p>
  
  <p>Thanks in advance for any direction,</p>