react-native-chating-ui-kit
Version:
CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly
21 lines • 819 B
JavaScript
import React, { useContext } from "react";
import { Image } from "react-native";
import { StickerStyle } from "./StickerStyle";
import { CometChatContext } from "../../shared/CometChatContext";
export const CometChatStickerBubble = (props) => {
const { url, style } = props;
const { theme } = useContext(CometChatContext);
const { backgroundColor, border, borderRadius, height, width } = new StickerStyle({
height: 200,
width: 200,
backgroundColor: theme.palette.getBackgroundColor(),
...style
});
return (<Image resizeMode={"cover"} source={{ uri: url }} style={{
height, width,
borderRadius,
borderWidth: border.borderWidth,
borderColor: border.borderColor
}}/>);
};
//# sourceMappingURL=StickersBubble.js.map