Я пытался изменить стиль, удалить стиль, но ничего не работает.
Код: Выделить всё
setSelectedTypeTest(itemValue)}
items={Constants.getTypeTest().map((test) => ({
label: t(test.label),
value: test.value,
}))}
style={{
inputAndroid: styles.inputAndroid,
inputIOS: styles.inputIOS,
viewContainer: styles.viewContainer,
}}
value={selectedTypePlanet}
useNativeAndroidPickerStyle={false}
doneText="OK"
/>
< /code>
Стиль для iOS: < /p>
inputIOS: {
height: 30,
paddingTop: 0,
paddingBottom: 0,
justifyContent: 'center',
alignItems: 'center',
textAlign: 'center',
backgroundColor: '#074183',
color: 'aliceblue',
borderRadius: 50,
borderWidth: 1,
borderColor: 'aliceblue',
paddingHorizontal: 10,
lineHeight: 15,
width: width * 0.4,
fontWeight: 500,
},
< /code>
Стиль для контейнера: < /p>
viewContainer: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
height: 50,
width: '100%',
},
Подробнее здесь: https://stackoverflow.com/questions/795 ... pen-on-ios