Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

sheet-surface.ts

11 lines415 Bytes

1import { Platform } from "react-native";
2​
3export const HORIZONTAL_FORM_SHEET_OPTIONS = {
4 presentation: "formSheet" as const,
5 sheetPrefersHorizontalBars: true,
6};
7​
8export function formSheetDetents(initialDetent: number, androidExpandedDetent = 0.92) {
9 // Duo moves the status bar above the sheet only at the maximum native detent.
10 return [initialDetent, Platform.OS === "ios" ? 1 : androidExpandedDetent];