xxxxxxxxxx
import {useState} from 'react';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import RadioButtonRN from 'radio-buttons-react-native';
/*you can't see the labels if your view is styled alignItems:"center", justifyContent:"center"*/
function App(){
const colors = [{label: 'red'}, {label:'green'}, {label:'blue'}];
return (
<View>
<RadioButtonRN
data={colors}/>
</View>
)
}
export default App;