terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
691 stars 450 forks source link

[Windows] Change save directory to application temp directory #214

Closed creambyemute closed 2 years ago

creambyemute commented 2 years ago

We had multiple clients that were unable to save to the PicturesLibrary in Windows even though permission was granted.

That could usually be solved by reinstalling windows, on a fresh install it always worked but that is not a feasible solution for our clients.

Instead I created a PR here which changes the directory to save to from the PicturesLibrary to the TemporaryDirectory of the application.

iOS also uses the TemporaryDirectory to save to while in Android it uses the ExternalStoragePicturesDirectory.