【发布时间】:2021-12-05 11:34:30
【问题描述】:
我是 react native 的新手。
我的问题很简单:我使用包 react-native-dropdown 选择器,但是当我打开下拉菜单时,我无法单击该选项,而是单击该选项下的头像。示例我想单击 Housing 并且它从 Yvonee 打开 Avatar 模式,而不是过滤类别。 任何建议如何解决?这是我的代码:
<View style={[styles.filterCompany, Platform.OS !== 'android' ? { zIndex: 1 } : null]}>
<DropDownPicker
items={colleguesList}
open={showDropDown}
setOpen={() => setShowDropDown(!showDropDown)}
value={category}
setValue={value => setCategory(value)}
dropDownContainerStyle={{
width: 170,
alignSelf: 'center',
position: 'absolute',
top: 10,
borderColor: Colors.SBLighBlue,
backgroundColor: Colors.SBLighBlue
}}
textStyle={{
fontFamily: customFonts.medium,
color: Colors.SBWhite,
fontSize: 16,
justifyContent: 'center'
}}
labelStyle={{
fontWeight: 'bold',
color: Colors.SBWhite
}}
arrowIconStyle={{
tintColor: Colors.SBWhite
}}
tickIconStyle={{
tintColor: Colors.SBWhite
}}
listMode="SCROLLVIEW"
style={{
width: 170,
height: 40,
alignSelf: 'center',
marginTop: 10,
backgroundColor: Colors.SBLighBlue,
borderColor: Colors.SBLighBlue,
zIndex: 1
}}
/>
</View>
<View style={styles.listAvatar}>
【问题讨论】:
标签: reactjs typescript react-native react-redux