Guides
Ref access from anywhere

Ref access from anywhere

You can access the ActionSheetRef from anywhere in the app using SheetManager. This will return the topmost action sheet with the given id if multiple are open.

SheetManager.get('example-sheet').snapToOffset(50);

You can also get ref of an action sheet in a specific SheetProvider.

SheetManager.get('example-sheet', 'local-context').snapToOffset(50);

Ref access in components

In components, ref can be accessed with useSheetRef hook or the ref prop on the ActionSheet.

const ref = useSheetRef("example-sheet");
 
ref.snapToOffset(50);
ref.hide();
Last updated on November 5, 2025