question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

full page grey splash on ios

See original GitHub issue

I’m using create-react-app and material, notice that on physical ios device, the page splashes, tried -webkit-tap-highlight-color: transparent, not working, don’t know why, so I tried this example on material-ui repo, the example also get splashes, is this not a bug? If not, how can I fix it. Thanks!!!

  • I have searched the issues of this repository and believe that this is not a duplicate.

Your Environment

Tech Version
Material-UI “material-ui”: “^1.0.0-beta.43”
React “react”: “^16.3.2”
browser
etc

wechatimg81 wechatimg82 wechatimg83

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
oliviertassinaricommented, Apr 27, 2018

The simplest reproduction I could build:

import React from "react";
import ReactDOM from "react-dom";

function Index() {
  return <button onMouseDown={() => {}}>Wtf</button>;
}

ReactDOM.render(<Index />, document.querySelector("#root"));

https://codesandbox.io/s/p3npm3o6j7

I don’t think that we can do anything about it. I have opened a bug on iOS side: https://bugreport.apple.com/web/?problemID=39801425

0reactions
gaearoncommented, Aug 6, 2018

I guess you can work around it by detecting iOS and assuming it won’t have mouse support (so you can maybe map mouse events to touch events directly, thereby preventing React from registering a mouse listener). I don’t know if that’s a very good strategy though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

full page grey splash on ios · Issue #11154 · mui/material-ui
I'm using create-react-app and material, notice that on physical ios device, the page splashes, tried -webkit-tap-highlight-color: ...
Read more >
Unity IOS grey before splash screen fix - Tadas A
This is going to show you how to remove the grey screen before the start of the splash screen when game is build...
Read more >
Grey screen solved / No internet Splash s… - Apple Community
The Imac would give me a grey screen on start up say after a long shut down ... All would eventually spring to...
Read more >
Splash screen background is grey on mobile platforms
The problem is that the background image doesn't appear when testing the build on mobile (both Android and iOS), it just appears as...
Read more >
How can I display a splash screen for longer on an iPhone?
The simplest way to do this is to create a UIImageView who's image is your Default.png. In your applicationDidFinishLaunching: method, add that image...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found