beeshell
beeshell copied to clipboard
BottomModal中uesRef拿到的ref没有open事件
使用useRef
const pickerRef = useRef(null)
<BottomModal ref={pickerRef} title='自定义选项' cancelable={true} />
请问hook方式怎么打开modal
pickerRef.current.open();
依赖的 react 版本是 15
这个问题怎么解决的