diff --git a/README.md b/README.md index 0723358..df20159 100644 --- a/README.md +++ b/README.md @@ -476,10 +476,10 @@ const actionSheetRef = createRef(); ; // then to show modal use -this.actionSheet.setModalVisible(true); +actionSheetRef.current?.setModalVisible(true); // and later you may want to hide it using -this.actionSheet.setModalVisible(false); +actionSheetRef.current?.setModalVisible(false); ``` #