Bugfix - Card style background

Fixes issue https://github.com/react-navigation/react-navigation/issues/5253
This commit is contained in:
Brendon Sled 2018-11-23 08:17:07 -06:00 committed by GitHub
parent 50dd7225df
commit a8b35cf58a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ class Card extends React.Component {
) : null}
<Animated.View
{...getAccessibilityProps(isActive)}
style={[transparent ? styles.transparent : styles.card]}
style={[
transparent ? styles.transparent : styles.card,
style && style.backgroundColor ? { backgroundColor: style.backgroundColor } : {}
]}
>
{children}
</Animated.View>