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).
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 23 (12 by maintainers)
Commits related to this issue
- fix #61 moved shadow to a more specific element with a backgroundColor — committed to DonovanCharpin/react-native-action-button by DonovanCharpin 8 years ago
- Merge pull request #86 from DonovanCharpin/master fix #61 moved shadow to a more specific element with a backgroundColor — committed to mastermoo/react-native-action-button by mastermoo 8 years ago
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.