Skip to content

Instantly share code, notes, and snippets.

@jai-adapptor
Last active July 25, 2022 13:53
Show Gist options
  • Select an option

  • Save jai-adapptor/84802f37238a191c9f9c8dac75c3f843 to your computer and use it in GitHub Desktop.

Select an option

Save jai-adapptor/84802f37238a191c9f9c8dac75c3f843 to your computer and use it in GitHub Desktop.
1: Setup for sheet
// ... imports
interface SheetProps {
minHeight?: number;
maxHeight?: number;
expandedHeight?: number;
}
type SheetPositions = 'minimised' | 'maximised' | 'expanded';
const window = Dimensions.get('window');
const screen = Dimensions.get('screen');
const NAV_HEIGHT = 48;
// component will go here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment