Meituan-Dianping / beeshell

React Native 组件库
MIT License
1.8k stars 280 forks source link

BottomModal中uesRef拿到的ref没有open事件 #88

Open HoikanChan opened 4 years ago

HoikanChan commented 4 years ago

使用useRef const pickerRef = useRef(null) <BottomModal ref={pickerRef} title='自定义选项' cancelable={true} />

image 请问hook方式怎么打开modal

duanzjun commented 4 years ago

pickerRef.current.open();

wxlworkhard commented 4 years ago

依赖的 react 版本是 15

luchenqian commented 3 years ago

这个问题怎么解决的