Open HoikanChan opened 4 years ago
使用useRef const pickerRef = useRef(null) <BottomModal ref={pickerRef} title='自定义选项' cancelable={true} />
const pickerRef = useRef(null)
<BottomModal ref={pickerRef} title='自定义选项' cancelable={true} />
请问hook方式怎么打开modal
pickerRef.current.open();
依赖的 react 版本是 15
这个问题怎么解决的
使用useRef
const pickerRef = useRef(null)
<BottomModal ref={pickerRef} title='自定义选项' cancelable={true} />
请问hook方式怎么打开modal