localforage-asyncstorage-driver:该驱动程序使您可以将localforage用于React-Native的AsyncStorage API

时间:2021-05-16 23:54:11
【文件属性】:
文件名称:localforage-asyncstorage-driver:该驱动程序使您可以将localforage用于React-Native的AsyncStorage API
文件大小:146KB
文件格式:ZIP
更新时间:2021-05-16 23:54:11
react-native localforage asyncstorage asyncstorage-wrapper localforage-driver localforage异步存储驱动程序 该库包含一个驱动程序,该驱动程序可将用于React-Native的 。 对等依赖 请注意! 随着切换到v3.0.0, @react-native-async-storage/async-storage成为对等依赖项!! 设置 只需通过NPM安装驱动程序: npm i --save @aveq-research/localforage-asyncstorage-driver 如果尚未完成,请确保要安装适当的对等依赖项( react或react-native )。 用法 它提供了三种不同的方法来创建适当的驱动程序: driverWithoutSerialization() :创建一个通用的AsyncStorage驱动程序,该驱动程序不会自动序列化任何数据。 您需要集成自己的序列化! driverWithSerialization(seriali
【文件预览】:
localforage-asyncstorage-driver-master
----.gitignore(2KB)
----.babelrc(62B)
----setupJest.js(178B)
----package.json(1KB)
----src()
--------main.js(9KB)
----jest.config.js(223B)
----LICENSE(1KB)
----CHANGELOG.md(6KB)
----types()
--------main.d.ts(229B)
----.github()
--------stale.yml(684B)
----__tests__()
--------driverWithDefaultSerialization.unit.test.js(4KB)
--------driverWithoutSerialization.unit.test.js(4KB)
--------driverWithSerialization.unit.test.js(4KB)
----README.md(2KB)
----yarn.lock(344KB)

网友评论