Skip to content

Change width-height of PasswordGesture component #31

@angelos3lex

Description

@angelos3lex

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.

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