2

选择器工作正常,但是当它放置在屏幕底部时,它应该向上扩展项目,但仍然下降..

我检查了文档但找不到方法?有人在这里怎么做吗?

截屏: 在此处输入图像描述

零件:

<View style={{flex: 1}}>
        <MapView
          provider={PROVIDER_GOOGLE}
          style={[styles.map]}
          loadingEnabled
          initialRegion={initialLocation}
          ref={mapRef}>
          {location && (
            <Marker coordinate={location}>
              <Image
                style={{
                  width: 40,
                  height: 40,
                  margin: 5,
                }}
                source={require('../../assets/icons/marker_icon.png')}
              />
            </Marker>
          )}
          
        </MapView>
        <View style={{flex: 1, justifyContent: 'flex-end', width: '50%'}}>
          <DropDownPicker
            items={allTowns}
            multiple={true}
            multipleText="%d bölge seçildi."
            min={0}
            max={10}
            defaultValue={country}
            containerStyle={{height: 40}}
            itemStyle={{
              justifyContent: 'center',
              alignItems: 'center',
            }}
            onChangeItem={(item) => alert(item)}
          />
        </View>
      </View>
4

0 回答 0