-
Notifications
You must be signed in to change notification settings - Fork 222
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
Windows: First instance of action sheet display gets cut off #184
Comments
Looked into this a little bit. Looks like Would you be open to a PR that exposes a |
@emmanuj Yes, as long as it defaults to the current behavior. Thank you! |
Created a PR for this that will allow Windows users to set |
Fixes #184 Co-authored-by: emmanuel.john <emmanuel.john@singlewire.com>
🎉 This issue has been resolved in version 3.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
We're trying to use react-native to drive a Windows app as well as our Android and iOS apps. This bug only appears on Windows.
The first time we open an action sheet (again, on Windows only), we only see about the first 1/5 of the content of the sheet. The next (and subsequent) clicks open the full content as expected.
We've debugged the content, what we call lookups, it's there and available before the first click. We've played with the height styling to see if we can hardcode it—setting height via actionSheetOptions'
containerStyle
, and although we can hardcode the size however we want (setting it to 100%, for example), the first click is always different/missing content, as if the offset or vertical anchor point is calculated incorrectly to begin with, and the location is the problem, but somehow this gets corrected after the initial display of the actionSheet.This is the final display result (after the pop-up animation is complete) of the initial showActionSheetWithOptions call (only 1.5 of the 8 options are visible/clickable):
![IncorrectDisplay](https://user-images.githubusercontent.com/941809/95345603-85e2c700-0880-11eb-99a6-a340510fc0ba.png)
This is what all subsequent displays look like (and what we would expect for all of them):
![CorrectDisplay](https://user-images.githubusercontent.com/941809/95361069-de6e9000-0891-11eb-9e4b-3d35aadaa44b.png)
If I set the containerStyle height to 100%, the first window shows more but it still only fills about 50% of the screen on the first display. For all subsequent clicks, the sheet takes up the full screen.
This is the first instance of ActionSheet with height: 100%
![Screen Shot 2020-10-07 at 11 44 02 AM](https://user-images.githubusercontent.com/941809/95361579-88e6b300-0892-11eb-9c0d-4577e5e2e24f.png)
And this is how all subsequent clicks look:
![Screen Shot 2020-10-07 at 11 44 13 AM](https://user-images.githubusercontent.com/941809/95361662-a156cd80-0892-11eb-8a14-f69bc7f91119.png)
The text was updated successfully, but these errors were encountered: