Created
February 22, 2016 08:31
-
-
Save neciu/ba8807929018a9ce37a9 to your computer and use it in GitHub Desktop.
React Native 0.20 border radius problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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