Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

React-native Picker broken on IOS

$
0
0

I am using expo with react-native to implement a picker. When I launch it on Android the picker works perfectly but when I launch it on IOS, I get the following view. Broken picker on IOS. I am not getting any error messages and I do not want to use any other libraries.

<Picker       style={{
              width: "100%",
              height: 50
            }}
            selectedValue={this.state["country"]}
            mode="dropdown"
            onValueChange={(itemValue, itemIndex) => {
              console.log(itemIndex);
              this.setState({ country: itemValue });
            }}
          >
            {this.state["country_array"].map((item, key) => (
              <Picker.Item label={item[1]} value={item[0]} key={key} />
            ))}
          </Picker>

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>