react-native-action-button: RCTView has a shadow set but cannot calculate shadow efficiently

Hi, running action button on ios gives that error. Didn’t happen on 2.0.14… Anyone have an idea?

"react-native-action-button": "2.0.15",
"react": "^15.3.2",
"react-native": "0.37.0",

simulator screen shot 24 nov 2016 11 43 27

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 9
  • Comments: 21 (9 by maintainers)

Most upvoted comments

in my case it solved by putting: shadowOpacity: 0.9

The look is almost same but removes the warning.

  • 2016
  • 2017
  • 2018
  • 2019 Same issue in year 2020 👎

my solution:

shadowStyle={{
    backgroundColor: '#fff',
    borderRadius: 28,
}}

This warning told us “Consider setting a background color to fix this”. i did and it worked for me

Well it was in fact a “trial and error” Process. My point was opacity 1 and opacity 0.9 is hardly distinguishable but if in their code opacity==1 is considered to enforce a background color then i will pass. Luckily it worked for me.

@himelnagrana How you came on this solution? 🥇

I got this warning too. Any fix?

all good in 2.6.0! i didnt see the new release. thanks for the quick work!

In 2.6.0?

On Sun, Feb 26, 2017 at 7:34 PM +0100, “Kane Cochran” notifications@github.com wrote:

Same here. On 2.5.0

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.