Skip to content

Add +html.tsx to Expo example for better universal support#421

Open
trcoffman wants to merge 1 commit intoLegendApp:webfrom
trcoffman:chore/example-expo-web-html
Open

Add +html.tsx to Expo example for better universal support#421
trcoffman wants to merge 1 commit intoLegendApp:webfrom
trcoffman:chore/example-expo-web-html

Conversation

@trcoffman
Copy link
Copy Markdown
Contributor

Many people using this library use expo-web so it's good to make sure the example app works well with expo-web.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba797a5264

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +17 to +19
<meta
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no"
name="viewport"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid disabling browser zoom in the shared web viewport

On mobile web this root HTML is applied to every route, so maximum-scale=1, user-scalable=no makes all of the demo screens with TextInput (chat-example, accurate-scrollto, countries, etc.) non-zoomable in Safari/Chrome. That is an accessibility regression for low-vision users, and Expo Router’s documented +html.tsx template does not include those flags, so the example becomes less usable on phones rather than more universally supported.

Useful? React with 👍 / 👎.

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

Successfully merging this pull request may close these issues.

1 participant