react-native-action-button: View #337 of type TCtView has a shadow set but cannot calculate shadow efficiently.

This happens when using an alpha color with no rgb. For example, I am using rgba(0,0,0,.40).

screen shot 2016-07-03 at 5 56 02 pm

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 23 (12 by maintainers)

Commits related to this issue

Most upvoted comments

I still get this error: View #50 of type RCTView has a shadow set but cannot calculate shadow efficiently. Consider setting a background color to fix this, or apply the shadow to a more specific component.

I am using ActionButton like this: <View > <ActionButton active={true} buttonColor="rgba(251,184,41, 1)" /> </View>

in my case it solved by putting: shadowOpacity: 0.9

The look is almost same but removes the warning.