Meituan-Dianping / Meituan-Dianping/beeshell
setState后Modal里展示没有渲染
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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