Skip to content

Instantly share code, notes, and snippets.

@neciu
Created February 22, 2016 08:31
Show Gist options
  • Save neciu/ba8807929018a9ce37a9 to your computer and use it in GitHub Desktop.
Save neciu/ba8807929018a9ce37a9 to your computer and use it in GitHub Desktop.
React Native 0.20 border radius problem
import React, {
StyleSheet,
View,
AppRegistry,
} from 'react-native';
const BorderRadiusProblem = () => {
const styles = StyleSheet.create({
wrapper: {
padding: 16,
paddingTop: 40,
backgroundColor: 'purple',
},
button: {
flex: 1,
borderColor: 'white',
borderWidth: 2,
padding: 8,
borderRadius: 10,
borderTopRightRadius: 0,
borderBottomRightRadius: 0,
}
});
return (
<View style={styles.wrapper}>
<View style={styles.button}/>
</View>
);
};
AppRegistry.registerComponent('BorderRadiusProblem', () => BorderRadiusProblem);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment