async-storage:用于异步存储的 React Native 钩子-源码

上传者: 42169971 | 上传时间: 2021-08-03 18:04:43 | 文件大小: 373KB | 文件类型: ZIP
@rnhooks/异步存储 用于 AsyncStorage 的 React Native 钩子 import useAsyncStorage from '@rnhooks/async-storage'; function App() { const [storageItem, updateStorageItem, clearStorageItem] = useAsyncStorage( key, ); return ( {`Storage Value: ${storageItem}`} <Button title="Update Item" onPress={() => up

文件下载

资源详情

[{"title":"( 73 个子文件 373KB ) async-storage:用于异步存储的 React Native 钩子-源码","children":[{"title":"async-storage-master","children":[{"title":".eslintrc.json <span style='color:#111;'> 964B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 63B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.js <span style='color:#111;'> 739B </span>","children":null,"spread":false}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":".yalcignore <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"_tests_","children":[{"title":"index.test.js <span style='color:#111;'> 187B </span>","children":null,"spread":false}],"spread":true},{"title":"rollup.config.js <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":".prettierignore <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":".prettierrc.js <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"example","children":[{"title":".gitignore <span style='color:#111;'> 800B </span>","children":null,"spread":false},{"title":".flowconfig <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"yalc.lock <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 651B </span>","children":null,"spread":false},{"title":".buckconfig <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":"android","children":[{"title":"app","children":[{"title":"build.gradle <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"debug","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"xml","children":[{"title":"react_native_config.xml <span style='color:#111;'> 331B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 969B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 6.93KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 10.43KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 6.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 15.16KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 9.03KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 192B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"MainActivity.java <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"MainApplication.java <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"build_defs.bzl <span style='color:#111;'> 602B </span>","children":null,"spread":false},{"title":"BUCK <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 667B </span>","children":null,"spread":false}],"spread":false},{"title":"settings.gradle <span style='color:#111;'> 45B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 854B </span>","children":null,"spread":false},{"title":"keystores","children":[{"title":"BUCK <span style='color:#111;'> 152B </span>","children":null,"spread":false},{"title":"debug.keystore.properties <span style='color:#111;'> 105B </span>","children":null,"spread":false}],"spread":false},{"title":"gradlew <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 53.06KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":".watchmanconfig <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"metro.config.js <span style='color:#111;'> 300B </span>","children":null,"spread":false},{"title":"ios","children":[{"title":"exampleTests","children":[{"title":"Info.plist <span style='color:#111;'> 733B </span>","children":null,"spread":false},{"title":"exampleTests.m <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":false},{"title":"example-tvOS","children":[{"title":"Info.plist <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":false},{"title":"example-tvOSTests","children":[{"title":"Info.plist <span style='color:#111;'> 765B </span>","children":null,"spread":false}],"spread":false},{"title":"example.xcodeproj","children":[{"title":"xcshareddata","children":[{"title":"xcschemes","children":[{"title":"example.xcscheme <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false},{"title":"example-tvOS.xcscheme <span style='color:#111;'> 4.87KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"project.pbxproj <span style='color:#111;'> 59.77KB </span>","children":null,"spread":false}],"spread":false},{"title":"example","children":[{"title":"main.m <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"AppDelegate.h <span style='color:#111;'> 386B </span>","children":null,"spread":false},{"title":"Info.plist <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"Images.xcassets","children":[{"title":"AppIcon.appiconset","children":[{"title":"Contents.json <span style='color:#111;'> 585B </span>","children":null,"spread":false}],"spread":false},{"title":"Contents.json <span style='color:#111;'> 63B </span>","children":null,"spread":false}],"spread":false},{"title":"AppDelegate.m <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Base.lproj","children":[{"title":"LaunchScreen.xib <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"index.js <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"__tests__","children":[{"title":"App-test.js <span style='color:#111;'> 266B </span>","children":null,"spread":false}],"spread":false},{"title":"App.js <span style='color:#111;'> 829B </span>","children":null,"spread":false},{"title":"babel.config.js <span style='color:#111;'> 77B </span>","children":null,"spread":false},{"title":".gitattributes <span style='color:#111;'> 16B </span>","children":null,"spread":false},{"title":"app.json <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 256.19KB </span>","children":null,"spread":false}],"spread":false},{"title":".npmignore <span style='color:#111;'> 78B </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 146B </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 312.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明