Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling documentation #12

Open
niftylettuce opened this issue Oct 23, 2015 · 1 comment
Open

Styling documentation #12

niftylettuce opened this issue Oct 23, 2015 · 1 comment

Comments

@niftylettuce
Copy link

There isn't much documentation on how to style the View, Button, or Text. I'm therefore having to write my own button as such:

        <TouchableOpacity style={styles.buttonBg} onPress={this.onPress}>
          <Text style={styles.buttonText}>
            LOG IN
          </Text>
        </TouchableOpacity>
@melihmucuk
Copy link

If you set the style like this:

buttonContainer: {
    backgroundColor: '#66BB6A',
    color: 'white',
    padding: 10,
    margin: 5,
  },

backgroundColor specify background color of button, color specify text color inside of the button.

You should set like this:
<Button style={styles.buttonContainer} ... />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants