Atrybut stylu borderRadius
nie zmienia prawidłowo obramowania komponentu.React-natywny: borderRadius nie kwalifikuje komponentu prawnie
Spodziewam się zobaczyć zielone kółko na czerwonym tle bez białych znaków. Zamiast tego widzę to.
class Healthie extends React.Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.button} />
</View>
);
}
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'red',
},
button: {
backgroundColor: 'green',
borderRadius: 50,
width: 100,
height: 100,
textAlign: 'center'
}
});
reakcji natywną wersję: 0.17.0.
Udało się! Dzięki! Nawet bez '{{backgroundColor: 'transparent'}}'. –