@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
27 lines • 903 B
JavaScript
import { StyleSheet } from "react-native";
export const getAvatarStyle = (color, spacing, typography) => {
return StyleSheet.create({
containerStyle: {
alignItems: "center",
justifyContent: "center",
backgroundColor: color.extendedPrimary500,
height: spacing.spacing.s12,
width: spacing.spacing.s12,
borderRadius: spacing.radius.max,
},
imageStyle: {
height: "100%",
width: "100%",
borderRadius: spacing.radius.max,
},
textStyle: {
textAlign: "center",
textAlignVertical: "center",
fontSize: typography.heading2.bold.fontSize,
color: color.primaryButtonIcon,
fontFamily: typography.fontFamily,
...typography.heading2.bold,
},
});
};
//# sourceMappingURL=styles.js.map