【文件属性】:
文件名称:aws-amplify-react-hooks:AWS Amplify React-native挂钩
文件大小:8.58MB
文件格式:ZIP
更新时间:2021-05-17 05:09:32
JavaScript
aws放大React钩
AWS Amplify react-native挂钩(仅React Native)
安装
npm install aws-amplify-react-hooks
或者如果使用
yarn add aws-amplify-react-hooks
例子
git clone git@github.com:react-native-village/aws-amplify-react-hooks.git
cd examples/reactNativeCRUD
yarn
react-native run-ios
react-native run-android
原料药
AmplifyProvider
与相似。 为了使该程序包正常工作,您需要在适当的级别用AmplifyProvider包装组件树,封装所有将使用钩子的组件。
用法
import React from 'r