I created an exportable ref with
export const actionSheetRef = React.createRef<ActionSheetProvider>(), and applied it to the ActionSheetProvider.
When I then try to access it, using either actionSheetRef.current or actionSheetRef.current._actionSheetRef.current, all the typed functions don't seem to be accessible, even though the typescript definition file shows this:
I created an exportable ref with
export const actionSheetRef = React.createRef<ActionSheetProvider>()
, and applied it to the ActionSheetProvider. When I then try to access it, using eitheractionSheetRef.current
oractionSheetRef.current._actionSheetRef.current
, all the typed functions don't seem to be accessible, even though the typescript definition file shows this:I'd like to programatically close the action sheet using either _animateOut or _selectedCancelButton, but accessing that key returns
undefined
.Has anyone had any luck getting ref to work properly?