chore: upgrade depenendecies

This commit is contained in:
Satyajit Sahoo
2020-08-04 12:20:31 +02:00
parent b1f1377429
commit cd031f0473
51 changed files with 953 additions and 994 deletions

View File

@@ -508,9 +508,10 @@ export default class Card extends React.Component<Props> {
: undefined;
const { backgroundColor } = StyleSheet.flatten(contentStyle || {});
const isTransparent = backgroundColor
? Color(backgroundColor).alpha() === 0
: false;
const isTransparent =
typeof backgroundColor === 'string'
? Color(backgroundColor).alpha() === 0
: false;
return (
<CardAnimationContext.Provider value={animationContext}>

View File

@@ -26,7 +26,9 @@ type Props = TransitionPreset & {
safeAreaInsetRight: number;
safeAreaInsetBottom: number;
safeAreaInsetLeft: number;
cardOverlay?: (props: { style: StyleProp<ViewStyle> }) => React.ReactNode;
cardOverlay?: (props: {
style: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
}) => React.ReactNode;
cardOverlayEnabled?: boolean;
cardShadowEnabled?: boolean;
cardStyle?: StyleProp<ViewStyle>;