Meituan-Dianping / Meituan-Dianping/beeshell

setState后Modal里展示没有渲染

Open
#62 1 comment 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

伪代码
this.state = {createStartDate: '2017-11-11'}
render() {
return (
<View style={{flex: 1}}>
<SlideModal ref={(c) => {this._slideModal = c;}}>

<Text style={{fontSize: 14, color: colors.black}}>
{this.state.createStartDate}



);
}

使用SlideModal作了一个 筛选框,里面一些类似input,还有文本 。Moadl展开的情况下setState,没渲染,关闭后重新展开,又渲染了

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 reproducing the issue with SlideModal open, then calling setState for content displayed inside it. Inspect the SlideModal entry point and its rendering behavior. Done means state changes are visible immediately while the modal remains open, without closing and reopening it.

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.