文档模板:v0.4.2
@gorhom/bottom-sheet
本项目基于 react-native-bottom-sheet 开发。
该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:@react-native-ohos/bottom-sheet 版本所属关系如下:
| 三方库名称 | 三方库版本(npm地址) | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | 源码地址 |
|---|---|---|---|---|---|---|---|
| @react-native-ohos/bottom-sheet | ~ 5.2.0 | Gitcode Releases | 0.82.* | 否 | API12+ | 5.2.14 | sig |
| @react-native-ohos/bottom-sheet | ~ 5.1.7 | Gitcode Releases | 0.77.* | 否 | API12+ | 5.1.6 | br_rnoh0.77 |
| @react-native-ohos/bottom-sheet | ~ 4.6.5 | Gitcode Releases | 0.72.* | 否 | API12+ | 4.6.1 | br_rnoh0.72 |
| @react-native-oh-tpl/bottom-sheet | <= 4.6.4-0.0.2@deprecated | Github Releases(deprecated) | 0.72.* | 否 | API12+ | 4.6.1 | sig |
简介
react-native-bottom-sheet 是一个高性能的交互式底部抽屉组件,提供完全可配置的选项,支持多种吸附点、手势交互、键盘适配等特性 🚀
下载安装
进入到工程目录并输入以下命令:
npm
npm install @react-native-ohos/bottom-sheet
yarn
yarn add @react-native-ohos/bottom-sheet
运行
安装完成后,构建并运行项目即可使用。
权限要求
无特殊权限需求。