Im using a library called 'react-native-actions-sheet', which is basically a drawer/panel component. I use it as follows:
import ActionSheet from 'react-native-actions-sheet';import { ActionSheetRef } from 'react-native-actions-sheet';const MyComponent = () => { const actionSheetRef = useRef<ActionSheetRef>(null); useEffect(() => { actionSheetRef.current?.show(); }, []); return (<ActionSheet ref={actionSheetRef} ...><View testID='viewTestId'> ...</View</ActionSheet> )}
actionSheetRef.current?.show() is the function that displays the 'drawer'.If I render MyComponent in my test, 'viewTestId' cannot be found.I cannot seem to find a solution, how would I go on about this?