OneScript

presentationDragIndicator

Show or hide the sheet's drag indicator.

presentationDragIndicator(visibility) applies to a view inside sheet content. visibility is "automatic", "visible", or "hidden". With "automatic", sheets with more than one presentationDetents value show the indicator.

import { Modifier, Text } from "onescript/views"

<Text modifier={Modifier
  .presentationDetents(["medium", "large"])
  .presentationDragIndicator("visible")}>
  Content
</Text>

How is this guide?

Last updated on