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
I have checked the example and found that we can set the object as options but not sure how to implement it. Can you please explain step by step how we can achieve it?
A quick reply will be much appreciated.
The text was updated successfully, but these errors were encountered:
How I did it was by passing array of an objects in the options and using renderRow function-
here "option.label" is my object key. renderRow={(option,index,isSelected)=>{ return( <View style={{paddingHorizontal:5,paddingVertical:5}}> <Text style={{fontFamily:theme.textFont,fontSize:14,color:option.value==this.state.selectedPreset.value?theme.textColor:'#cfcfcf'}}>{option.label}</Text> </View> ) }}
I have checked the example and found that we can set the object as options but not sure how to implement it. Can you please explain step by step how we can achieve it?
A quick reply will be much appreciated.
The text was updated successfully, but these errors were encountered: