Skip to content

Styling documentation #12

Open
Open

Description

@niftylettuce

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>

Activity

  1. melihmucuk commented on Oct 23, 2015

    @melihmucuk

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions