react-native - 打开 Bottom Sheet 时如何实现黑色透明的react-native-raw-bottom-sheet?

标签 react-native bottom-sheet

我在react native 应用程序中使用react-native-raw-bottom-sheet,打开 Bottom Sheet 时黑色透明 View 。

最佳答案

<RBSheet
  ref={refRBSheet}
  closeOnDragDown={true}
  closeOnPressMask={true}
  customStyles={{
    wrapper: {
      backgroundColor: 'rgba(0,0,0,.6)',
    },
    draggableIcon: {
      backgroundColor: 'blue',
    },
  }}>

关于react-native - 打开 Bottom Sheet 时如何实现黑色透明的react-native-raw-bottom-sheet?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63717636/

相关文章:

reactjs - 世博会应用程序 : The action 'TOGGLE_DRAWER' was not handled by any navigator

android - 展开时,部分android Bottom Sheet 隐藏在android的工具栏下

android - 在一个 react-native 项目中使用 google map 和 FCM

javascript - react native 嵌套堆栈导航显示空屏幕

ios - UINavigationController 在 RCT_EXPORT_METHOD(React Native)中为 nil

Android BottomSheetBehavior setPeekHeight(int peekHeight, boolean animate) 不会对高度过渡进行动画处理

android - 如何将 MarginBottom 添加到 BottomSheetDialogFragment?

javascript - React-Native:使用 require() 访问文件中包含的方法

android - BottomSheet 中的 ListView

java - 结合使用底部布局和MotionLayout的最佳方法是什么