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

sheet-surface.ts

6 lines290 Bytes

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