Skip to content

🐛 Fixed warning: 'View has a shadow set but cannot calculate shad…#86

Merged
jasongaare merged 2 commits intojasongaare:masterfrom
1fabiopereira:master
Jul 24, 2020
Merged

🐛 Fixed warning: 'View has a shadow set but cannot calculate shad…#86
jasongaare merged 2 commits intojasongaare:masterfrom
1fabiopereira:master

Conversation

@1fabiopereira
Copy link
Copy Markdown
Contributor

@1fabiopereira 1fabiopereira commented Jun 11, 2020

Added option to enable or disable shadow, this avoid warnings on IOS devices.
fix: #81

Copy link
Copy Markdown
Owner

@jasongaare jasongaare left a comment

Choose a reason for hiding this comment

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

Hello! Thank you for this PR.

Could you please invert it though so that the shadows are enabled by default? i.e. could you:

  1. make the prop title disableShadow (default false)
  2. make the description something similar to: "When true, tooltips will not appear elevated. Disabling shadows will remove the warning: RCTView has a shadow set but cannot calculate shadow efficiently"

@1fabiopereira
Copy link
Copy Markdown
Contributor Author

Done! All changes that you proposed.

@jasongaare
Copy link
Copy Markdown
Owner

wow I am terribly sorry I must have missed you made the changes!

@jasongaare jasongaare merged commit 3821b0d into jasongaare:master Jul 24, 2020
@jasongaare
Copy link
Copy Markdown
Owner

This is live in version 1.1.10

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.

View has a shadow set but cannot calculate shadow efficiently

2 participants