diff --git a/src/views/StackView/StackViewCard.js b/src/views/StackView/StackViewCard.js index 440b3e2..ab923f9 100644 --- a/src/views/StackView/StackViewCard.js +++ b/src/views/StackView/StackViewCard.js @@ -4,7 +4,6 @@ import { Screen } from 'react-native-screens'; import createPointerEventsContainer from './createPointerEventsContainer'; const EPS = 1e-5; - function getAccessibilityProps(isActive) { if (Platform.OS === 'ios') { return { @@ -49,11 +48,14 @@ class Card extends React.Component { ...containerAnimatedStyle } = animatedStyle; + let flattenedStyle = StyleSheet.flatten(style) || {}; + let { backgroundColor, ...screenStyle } = flattenedStyle; + return ( {shadowOpacity ? ( @@ -65,9 +67,11 @@ class Card extends React.Component { {children}