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

Change width-height of PasswordGesture component #31

Open
angelos3lex opened this issue Aug 9, 2018 · 2 comments
Open

Change width-height of PasswordGesture component #31

angelos3lex opened this issue Aug 9, 2018 · 2 comments

Comments

@angelos3lex
Copy link

Hi, even if we can override the styles of the component, we can't override height or width as they are fixed const. And they are used everywhere in file to set layout's height/width.
For example, by:

 <PasswordGesture
          style={{width:400, height:680}}
          ref="pg"
          status={this.state.status}
          message={this.state.message}
          onStart={() => this.onStart()}
          onEnd={password => this.onEnd(password)}
        />

Absolutely nothing happens.
Is there any option to alter it's height/width?
In fact, i want to enter the password-gesture inside a popup window, but i need to override Width = Dimensions.get('window').width and Height = Dimensions.get('window').height with parent's height/width, which is the size of the window popup .
So to sum up, my question is:
Is there any way to make the GesturePassword inherit height/width from parent view?
This issue was also referenced in #16 but closed without fix.

@JZorina
Copy link

JZorina commented Oct 11, 2020

did you managed to deal with it?

@angelos3lex
Copy link
Author

@JZorina Nope.. I've forked another similar repo here
And if you can take a look at the code in usage example in readme, at the last line i have a comment about how to place it inside a dialog(or another parent view). That fork works for me on production without any problem + it's not outdated. Maybe a similar workaround can work for this one as well

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