-
Notifications
You must be signed in to change notification settings - Fork 529
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
Set dynamic open values #424
Comments
Hey @sadikyalcin unfortunately if you look through the code of I would ask that you apply the percentage to the window width like you showed above i.e. As for the value not updating on an orientation change, can you try setting the prop See more here: #87 |
Hi Jesse, thanks for that, that has solved my problem. |
Awesome, glad to hear it |
Describe the bug
Open values expect a number so we cannot pass a string. Is there anyway we can modify the module to allow a percentage value? This is an issue when a device is rotated. Unless I do a orientation change detection and update the value.
rightOpenValue={-Dimensions.get('window').width / 2}
=>rightOpenValue={'-50%'}
To Reproduce
Set a fixed number on an open value and rotate the device.
Screenshots
Portrait:
Landscape:
![Screenshot 2020-02-28 at 14 14 33](https://user-images.githubusercontent.com/8109619/75555753-c188f900-5a34-11ea-89dd-36cd6413f0c2.png)
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: