facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.69k stars 24.29k forks source link

Async Storage "iOS Data Storage Guidelines" issue #8304

Closed grif-ecwid closed 7 years ago

grif-ecwid commented 8 years ago

Hi!

Our application was rejected for "iOS Data Storage Guidelines" issue. I found that AsyncStorage data is stored in Documents folder (see https://github.com/facebook/react-native/blob/master/React/Modules/RCTAsyncLocalStorage.m#L70) We store in storage lot of information about catalog and it's grow up quickly.

Is there any restriction to move data file into Cache directory or mark it like NSURLIsExcludedFromBackupKey YES? May be add parameter to AsyncStorage.setItem which one will be add this flag?

robclouth commented 8 years ago

Hey, same problem. Did you manage to fix this?

mkonicek commented 7 years ago

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/async-storage-ios-data-storage-guidelines-issue

Product Pains has been very useful in highlighting the top bugs and feature requests: https://productpains.com/product/react-native?tab=top

Also, if this issue is a bug, please consider sending a pull request with a fix.

robclouth commented 7 years ago

I would argue that this is a bug. The documents folder is public facing and can be accessed via iTunes. This isn't an appropriate place for settings.