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 the color of the delete button? #157

Open
zaid0077 opened this issue Nov 8, 2020 · 2 comments
Open

How to change the color of the delete button? #157

zaid0077 opened this issue Nov 8, 2020 · 2 comments

Comments

@zaid0077
Copy link

zaid0077 commented Nov 8, 2020

I am using the pin code component but i am not able to find any style prop that will help me change the color of the delete button. There are stylePinCodeDeleteButtonColorHideUnderlay and stylePinCodeDeleteButtonColorShowUnderlay but doesnt work.

<PINCode status={'choose'}
            colorCircleButtons = 'green'
            colorPassword= 'red'
            storePin={submitPin}
            stylePinCodeColorSubtitle= 'black'
            stylePinCodeColorTitle = 'black'
            stylePinCodeDeleteButtonColorShowUnderlay = 'red'
            stylePinCodeDeleteButtonColorHideUnderlay = 'green'
            styleMainContainer={{
                backgroundColor: 'white',
                flex: 1,
                justifyContent: 'center',
                alignItems: 'center'
              }}
            />
@zaid0077
Copy link
Author

zaid0077 commented Nov 8, 2020

Seems like the change from this property doesn't reflect in real time. When i close the app the open again the change is there..

@jeremy-farnault
Copy link
Contributor

What do you mean by real time?
Do you need to change it dynamically?

From what I see it should work. I'll give it a go if you need more than this.

        onHideUnderlay={() =>
          this.setState({
            colorDelete: this.props.styleDeleteButtonColorHideUnderlay
          })
        }
        onShowUnderlay={() =>
          this.setState({
            colorDelete: this.props.styleDeleteButtonColorShowUnderlay
          })
        }

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