Closed MahmudHasanMenon closed 4 years ago
I just solve the problem. here is some step i followed.
`const CustomActionSheet = useRef();
<ActionSheet ref={CustomActionSheet} title={'Please select an option for uploading photo'} options={['Choose Photo', 'Take Photo', 'Cancel']} cancelButtonIndex={2} onPress={(index) => { }} />
CustomActionSheet.current.show()
<CustomActionSheet ref={o => ActionSheet = o} title={'Please select an option for uploading photo'} options={['Choose Photo', 'Take Photo', 'Cancel']} cancelButtonIndex={2} onPress={(index) => { }} />
to show ActionSheetshowActionSheet = () => { this.ActionSheet.show() }