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

iOS renders a black block instead of loader for both custom and predefined presets. #8

Closed
MortezaT opened this issue May 15, 2018 · 7 comments
Labels

Comments

@MortezaT
Copy link

MortezaT commented May 15, 2018

I Checked the loader on different devices and it works very nice, but on my iPhone 6s it shows a black box instead of desired output

@NetanelBasal
Copy link
Member

Can you help to debug it, please?

@MortezaT
Copy link
Author

@NetanelBasal How can I help you with it?

@NetanelBasal
Copy link
Member

I don't have a way to debug it in iPhone 6. Can you check the original repo for this issue?

@GerardoLSJ
Copy link

The solution is to change the HTML like in the original repo :

{/* Opaque color in Safari and iOS */}
<ContentLoader 
  primaryColor="rgba(0,0,0,0.06)" 
  secondaryColor="rgba(0,0,0,0.12)">


{/* Semi-transparent color in Safari and iOS */}
<ContentLoader 
  primaryColor="rgb(0,0,0)"
  secondaryColor="rgb(0,0,0)"
  primaryOpacity={0.06}
  secondaryOpacity={0.12}>

in this linea apparently

https://github.com/NetanelBasal/ngx-content-loader/blob/b71d908e28e3c57c0316c79cea45b0e7aab65d52/src/lib/src/content-loader.component.html#L14

But i haven't try

Here is the original issue and PR

danilowoz/react-content-loader#93

@NetanelBasal
Copy link
Member

I would love to see PR copy these changes https://github.com/danilowoz/react-content-loader/pull/96/files. Otherwise, I'll do it when I'm available.

@NetanelBasal
Copy link
Member

fixed in 1.0.3.

@vinayakpatil
Copy link

image

@NetanelBasal this is still reproducible with 1.0.3 in iOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants