From 1c374ae1f1abf845a2b17219f4dbf659fb9fe138 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Mon, 26 Nov 2018 09:24:47 -0800 Subject: [PATCH] Update StackViewCard.js --- src/views/StackView/StackViewCard.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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}