Closed mintuz closed 9 years ago
In this case, Button components are styled very similar to Text components with UIKit-like defaults (the right type of Helvetica Neue, text color, etc.). But what kind of rendering did you have in mind?
Register and login text aligned left and right respectively and for them to maybe have square backgrounds, padding etc.
Left/right aligning the buttons is tricky because of flexbox's limitations. I believe you'll have to add this to your buttonContainer style to get the justifyContent property to apply.
position: 'absolute',
left: 0,
right: 0,
Looking at iOS none of the buttons have backgrounds so I prefer for users of the library to customize that, but padding is an interesting idea since it's not supported on plain Text components or TouchableOpacity so Button could make that easier. Hope that answers your questions.
Hello before I start, I am loving the concept/what you've done so far but have come across a bug/misunderstanding about how to style these buttons.
Below is some code I've written and the output is unexpected. essentially the spacing is broken and can't style them up to look like buttons.