I want to create picker component for android and as well as for ios, but facing problem in styling.
What I want to accomplish is to style picker text which is being displayed by default(it can be placeholder or the selected item from picker list).
I have tried the below code but it is not working.
<View style={{ backgroundColor: "#FFFFFF", borderRadius: 3, height: 39, marginTop:5, }}>
<Picker style={{ width: screenWidth, opacity:0.4, }}
textStyle={{ color: "blue" }}
itemStyle={{
backgroundColor: "green",
marginLeft: 0,
paddingLeft: 10
}}
itemTextStyle={{ color: '#788ad2' }}
>
<Picker.Item label="Java" value="java" />
<Picker.Item label="JavaScript" value="js" />
</Picker>
</View>
Any help will be a big plus.