javascript - react native : How to create a menu brought up from bottom?

标签 javascript reactjs react-native redux

我正在尝试重新创建以下内容,按下按钮时会从底部弹出一个菜单,但不知道从哪里开始。我该怎么做呢?

任何指导或见解将不胜感激。

最佳答案

看起来这是迄今为止最好的。适用于 Android 和 iOS。

https://github.com/prscX/react-native-bottom-action-sheet

注意:它需要原生模块,所以它不能在 Expo 上运行。

或者,您可以使用 NativeBase 中的这个组件: https://docs.nativebase.io/Components.html#actionsheet-def-headref

仅供引用:我还没有测试过 react-native-bottom-action-sheet

关于javascript - react native : How to create a menu brought up from bottom?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39088997/

相关文章:

javascript - 如何解决模块未找到: Can't resolve '@babel/runtime/core-js/map' in Material-UI

javascript - 幻灯片卡在最终图像上

javascript - ant design v4 打破了对 Select 和 Autocomplete 的 react 测试库测试

javascript - 退出时重置输入值

javascript - 用于原型(prototype)设计的简单推送服务器

javascript - 如何使用 KARMA 对 React JSX ES6 代码进行单元测试?

javascript - react + Formik : Use value for nested object

java - 在 Java 中将坐标从 React 转换为 iText

android - 为什么 Android Studio 强制使用 Android 支持库中的 Androidx?

javascript - 如何将 Prop 传递给导航屏幕组件 - React Native