sramezani/radio-buttons-react-native

Label update for component placeholder

istancescu opened this issue · 0 comments

Hey, I think it would be better to update current code:

<View style={[styles.centerProductBox]}> <Text style={[{ color: textColor }, textStyle]}> {item.label} </Text>

With the following:

<View style={[styles.centerProductBox]}> <Text style={[{ color: textColor }, textStyle]}> {item} </Text>

This way the library user will have a better experience using it and will not have to transform his data to a label object if they are using a different name.