1

I am creating an application very similar to whatsapp. I want to know how to save pdf files and images to the android file system?

Larney
  • 1,674
  • 4
  • 23
  • 47
  • Did you try investigating a bit?. Relevant stack post: http://stackoverflow.com/questions/2455102/writing-a-file-to-sdcard – Andrei T Jul 21 '16 at 08:54
  • Yes I did. Thats link is for android. I am looking for how to do it using react-native-android. – Larney Jul 21 '16 at 09:01
  • Possible duplicate of [How to save pdf to android file system and then view PDF - react-native](http://stackoverflow.com/questions/38662309/how-to-save-pdf-to-android-file-system-and-then-view-pdf-react-native) – Larney Mar 28 '17 at 12:17

1 Answers1

1

You could use react-native-fs. The writeFile method allows you to write files to your application's file system.

  • Thanks for pointing that out. The problem seems to be saving the file. Check out this post for more details. http://stackoverflow.com/questions/38662309/how-to-save-pdf-to-android-file-system-react-native Thanks. – Larney Aug 02 '16 at 08:42