Meituan-Dianping / Meituan-Dianping/beeshell

使用BottomModal弹出选择器,未能遮住底部的tabbar一栏

Open
#55 5 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

代码如下:
<BottomModal
style={{
marginBottom: this.adjustBottomMargin(),
height: null
}}
rightLabelTextStyle={{
color: AppStyle.tintColor
}}
ref={c => {
_self.bottomModal = c
}}
rightLabelText={'OK'}
leftLabelText={'Cancel'}
title={I18n.t('please choose')}
rightCallback={_self.onOKClick.bind(this)}
cancelable
>
<Scrollpicker
style={{ paddingHorizontal: 70 }}
list={[_self.props.itemList]}
proportion={[1]}
renderItem={item => {
return (
<View
style={{
flexDirection: 'row',
paddingVertical: 10
}}
>
<Text
style={{
color: '#333333',
fontSize: 20,
marginLeft: 10
}}
>
{item.name}


)
}}
onChange={(columnIndex, rowIndex) => {
_self.selectedItem = _self.props.itemList[rowIndex]
if (_self.props.onChange)
_self.props.onChange(_self.props.itemList[rowIndex])
}}
/>

结果图片如下:
myscreen

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 at the BottomModal component and reproduce the provided Scrollpicker example, paying attention to the marginBottom value returned by adjustBottomMargin(). Trace how the modal is positioned relative to the tab bar; done means the picker modal fully covers the tab bar while remaining usable.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.