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 use the PasswordGesture as a subview in my Component #16

Closed
will86 opened this issue Jun 21, 2017 · 2 comments
Closed

How to use the PasswordGesture as a subview in my Component #16

will86 opened this issue Jun 21, 2017 · 2 comments

Comments

@will86
Copy link

will86 commented Jun 21, 2017

In my page Component, I have some other views, I have left an empty area for the PasswordGesture to display.
But when I layout the PasswordGesture in the area , the full screen was occupied by the PasswordGesture.

What's the better way to use PasswordGesture as a subview?

Thanks.

@will86 will86 changed the title How to use the PasswordGesture as a sub view in my Component How to use the PasswordGesture as a subview in my Component Jun 21, 2017
@Spikef
Copy link
Owner

Spikef commented Jun 22, 2017

You can set the style property to overwrite the origin absolute position

@will86
Copy link
Author

will86 commented Jun 22, 2017

Thanks for your reply.

In my case, when I set width and height in the style , but it did not work.

I find the JavaScript file source that was written as the following.

const Width = Dimensions.get('window').width
const Height = Dimensions.get('window').height
const Top = (Height - Width)/2.0 * 1.5
const Radius = Width / 10

so I thing the size is fixed by the above code. Would you like to open a param to set the size.

Thanks again.

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