tradle / asyncstorage-down Goto Github PK
View Code? Open in Web Editor NEWA leveldown API implementation that maps to AsyncStorage in React Native
License: MIT License
A leveldown API implementation that maps to AsyncStorage in React Native
License: MIT License
Using AsyncStorage in react-native 0.60 gives a warning that it will be removed in next version. We should switch to @react-native-community/async-storage to fix this
It seems that this library uses AsyncStorage and not leveldb (which supports range queries, etc). Is this correct?
I'm using React Native 0.11.0, Node 4.0.0, XCode 7.0, and iOS 9 in the iPhone Simulator.
Running a demo app exactly as described in your README, I get
In the logs it says:
Unable to resolve module events from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/lib/levelup.js
Unable to resolve module util from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/lib/levelup.js
Unable to resolve module util from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/lib/levelup.js
Unable to resolve module util from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/deferred-leveldown/deferred-leveldown.js
Unable to resolve module stream from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/level-iterator-stream/node_modules/readable-stream/readable.js
Unable to resolve module buffer from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/level-iterator-stream/node_modules/readable-stream/lib/_stream_readable.js
Unable to resolve module events from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/level-iterator-stream/node_modules/readable-stream/lib/_stream_readable.js
Unable to resolve module stream from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/level-iterator-stream/node_modules/readable-stream/lib/_stream_readable.js
Unable to resolve module util from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/level-iterator-stream/node_modules/readable-stream/lib/_stream_readable.js
Unable to resolve module buffer from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/level-iterator-stream/node_modules/readable-stream/lib/_stream_writable.js
Unable to resolve module stream from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/level-iterator-stream/node_modules/readable-stream/lib/_stream_writable.js
Unable to resolve module buffer from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/node_modules/level-iterator-stream/node_modules/readable-stream/node_modules/string_decoder/index.js
Unable to resolve module util from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/lib/util.js
Unable to resolve module leveldown/package from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/lib/util.js
Unable to resolve module leveldown from /Users/nolan/workspace/TestAsyncStorageDown/node_modules/levelup/lib/util.js
Any advice? To repro, just open up that demo app in XCode and hit Run.
since we have all the keys in memory, we could make levelup's createReadStream work faster by taking advantage of AsyncStorage.multiGet and having the iterator preload in batches, iterate over cached values...repeat
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.