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

How to change View Background #126

Open
scrodrig opened this issue Mar 13, 2018 · 1 comment
Open

How to change View Background #126

scrodrig opened this issue Mar 13, 2018 · 1 comment

Comments

@scrodrig
Copy link

The principal View ask for some functions and cards like :

<View style={styles.container}>
        {this.props.stack ? this.renderStack() : this.renderCard()}
        {this.renderNope()}
        {this.renderMaybe()}
        {this.renderYup()}
  </View>

How could I change BGColor after a renderYup call, was trying with state in the functions changing it value for a prop but it does not work

Any idea?

@jonathanRinciari
Copy link

Haven't tried this but I have an updated version where a container style prop can be passed in. which will allow you to customize it from the parent component

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