You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed prop type: Invalid prop children of type object supplied to MenuItem, expected string.
i was try to get item from array but i have this error
code
render {
let citymenu = this.state.city.map((val, key) => {
return <MenuItem key={key} onPress={()=> {this.state.cityselectname=val.name; }}><Text style={{color:'white'}}> {val.name} });
Failed prop type: Invalid prop
children
of typeobject
supplied toMenuItem
, expectedstring
.i was try to get item from array but i have this error
code
render {
let citymenu = this.state.city.map((val, key) => {
return <MenuItem key={key} onPress={()=> {this.state.cityselectname=val.name; }}><Text style={{color:'white'}}> {val.name} });
return {
{this.state.cityselectname || "select city"} } > {citymenu}}}
The text was updated successfully, but these errors were encountered: