Skip to content

Allow control over AsyncStorage location on iOS #13

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

Closed
5 tasks done
cpojer opened this issue Feb 15, 2019 · 1 comment
Closed
5 tasks done

Allow control over AsyncStorage location on iOS #13

cpojer opened this issue Feb 15, 2019 · 1 comment
Labels
bug Something isn't working enhancement New feature or request platform: iOS This is iOS specific

Comments

@cpojer
Copy link
Contributor

cpojer commented Feb 15, 2019


This issue was originally created by @sam1463 as facebook/react-native#19692.


Environment

Environment:
OS: macOS High Sierra 10.13.5
Node: 9.4.0
Yarn: Not Found
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.2 => 0.52.2

Description

Currently, AsyncStorage stores data in the Documents directory on iOS. However, as discussed in this issue, this abandoned PR, and this abandoned PR, there should be an option to store elsewhere, as this location is not appropriate for non-user-created content, as it is visible for apps that enable file sharing with iTunes or the Files app on iOS.

Steps to Reproduce

This is the case on AsyncStorage on all versions of react-native to my knowledge.

Expected Behavior

Some sort of control over the location in which AsyncStorage stores data, so that it will not be exported to iTunes, viewable via the Files app, etc. on iOS

Actual Behavior

AsyncStorage saves to the Documents directory.

@krizzu
Copy link
Member

krizzu commented Jul 4, 2019

This will be included in v2 of Async Storage. Please refer to #113 for more details

@krizzu krizzu closed this as completed Jul 4, 2019
@krizzu krizzu mentioned this issue Jul 4, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request platform: iOS This is iOS specific
Projects
None yet
Development

No branches or pull requests

2 participants