Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

creambyemute
Copy link

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.

creambyemute and others added 24 commits March 21, 2020 15:13
Windows works with Device Independent Pixels already.
Don't apply screen scale in JavaScript, as is the case for iOS.
…handle

windows: fix image file handle being kept open
Fixes transferToBase64 thread affinity for compatibility with
react-native-windows >= 0.64.
Modernizes the code to use UIManager.getViewManagerConfig, since the
old method of accessing the module's Constants and Commands is being
deprecated.
…ead-affinity

windows: fix transferToBase64 thread affinity (react-native-windows 0.64)
…-dpis

windows: fix saved image on different screen scales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants