@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
57 lines • 1.62 kB
JavaScript
export const getIncomingCallStyle = (color, spacing, typography) => {
return {
containerStyle: {
backgroundColor: color.background3,
padding: 20,
borderRadius: 12,
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 6,
},
shadowOpacity: 0.37,
shadowRadius: 7.49,
elevation: 12,
},
titleTextStyle: {
color: color.textPrimary,
...typography.heading2.bold,
},
subtitleTextStyle: {
color: color.textSecondary,
marginTop: spacing.spacing.s1,
...typography.heading4.regular,
},
avatarStyle: {
containerStyle: {
height: 48,
width: 48,
},
imageStyle: {},
textStyle: {},
},
acceptCallButtonStyle: {
flex: 1,
backgroundColor: color.success,
paddingVertical: 12,
borderRadius: 8,
},
acceptCallTextStyle: {
color: color.primaryButtonText,
textAlign: "center",
...typography.button.medium,
},
declineCallButtonStyle: {
flex: 1,
backgroundColor: color.error,
paddingVertical: 12,
borderRadius: 8,
},
declineCallTextStyle: {
color: color.primaryButtonText,
textAlign: "center",
...typography.button.medium,
},
};
};
//# sourceMappingURL=style.js.map