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

website: iPad devices, lost expo simulator in all examples, after change horizontally. #2646

Closed
luism3861 opened this issue Jun 17, 2021 · 3 comments

Comments

@luism3861
Copy link
Contributor

luism3861 commented Jun 17, 2021

Description

this issue it's about, for all examples in expo simulator lost after change iPad horizontally test in iPad Air 4 generation i believe for iPad pro it's the same issue

image

Documentation version

version: 0.64

@Simek
Copy link
Collaborator

Simek commented Jul 4, 2021

Hi @luism3861, I'm not sure, but is looks like iPads are categorized/detected by Snack as mobile devices, and on mobile device the preview pane is disabled by default. I don't have an iPad right now, but I will try to use simulator to look at this issue.

Meanwhile you can always launch Snack example in a new window, which will should redirect you to the Snack website, and the preview should be available (can you confirm that the preview pane is visible on https://snack.expo.io/ when visiting from iPad?).

Screenshot 2021-07-04 100632

CC: @IjzerenHein

@luism3861
Copy link
Contributor Author

Hi @luism3861, I'm not sure, but is looks like iPads are categorized/detected by Snack as mobile devices, and on mobile device the preview pane is disabled by default. I don't have an iPad right now, but I will try to use simulator to look at this issue.

Meanwhile you can always launch Snack example in a new window, which will should redirect you to the Snack website, and the preview should be available (can you confirm that the preview pane is visible on https://snack.expo.io/ when visiting from iPad?).

Screenshot 2021-07-04 100632

CC: @IjzerenHein

Hi @Simek i can confirmed example link works in iPad horizontally.
image

@IjzerenHein
Copy link
Contributor

This happens when the width of the Snack window/iframe is less than 700px. In that case we consider there to be too little room to display the preview pane. The following media-query is responsible for it:
https://github.com/expo/snack/blob/main/website/src/client/components/DevicePreview/DevicePreview.tsx#L47

If you think this behavior is wrong, please create an issue/PR in https://github.com/expo/snack with a suggested change.

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

3 participants