Meituan-Dianping / Meituan-Dianping/beeshell

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

Open
#88 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.8k
Forks
285
PR merge metrics
No merged PRs in 30d

Description

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

image
请问hook方式怎么打开modal

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the BottomModal component and its ref API, using the useRef and pickerRef example in the report as the entry point. Check existing examples or documentation for opening the modal through a hook; done should mean the expected hook-based behavior and usage are clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.