TallerWebSolutions / apollo-cache-instorage

Apollo Cache implementation that facilitates locally storing resources
MIT License
96 stars 11 forks source link

React-Native Support #4

Closed juddey closed 5 years ago

juddey commented 5 years ago

Just wondering if this library is designed to be compatible with React Native. Saw lots of WebStorage mentioned, and since Async Storage has the same api as Webstorage afaik, it sounds like it might work?

https://facebook.github.io/react-native/docs/asyncstorage.html

A simple yes or no answer would suffice, I don't want to chew up your time.

Thanks!

lucasconstantino commented 5 years ago

It might work.

Basically, when I refer to "WebStorage" I'm only referring to the interface; nothing related to the web browser, though.

juddey commented 5 years ago

Its worth a shot! I shall give it a try and report back findings.

juddey commented 5 years ago

Unfortunately, didn't have any success with this. :disappointed: image

sampsonjoliver commented 4 years ago

Wouldn't a simple enough wrapper on AsyncStorage (or filesystem storage) work here, though, if the problem is just to do with the WebStorage interface?

@juddey I know it's been a while but can you recall what steps you took for the above?

juddey commented 4 years ago

Sorry @sampsonjoliver - no idea!