[Android Picker如何在RTL中使用我使用时不移动的位置

问题描述 投票:0回答:1

android react-native拾取器未移动位置,而我们将RTL切换为英语时,我只想在RTL中显示,我正在使用下面的拾取器

  <View style={{flexDirection: 'row'}}>
  <Picker
    selectedValue={selectedValue}
    style={{ height: 50, width: 150 }}
    onValueChange={(itemValue, itemIndex) => setSelectedValue(itemValue)}
  >
    <Picker.Item label="Java" value="java" />
    <Picker.Item label="JavaScript" value="js" />
  </Picker>
</View>

https://paste.pics/9122J

react-native react-native-android
1个回答
0
投票

只需将flexDirection:"row"添加到您的View样式

© www.soinside.com 2019 - 2024. All rights reserved.