mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-09 07:18:35 +08:00
chore: upgrade depenendecies
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user