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
14 lines • 591 B
JavaScript
import { ChatConfigurator } from "../../shared/framework";
import { LinkPreviewExtentionDecorator } from "./LinkPreviewExtentionDecorator";
export class LinkPreviewExtention {
linkPreviewConfiguration;
constructor(linkPreviewConfiguration) {
this.linkPreviewConfiguration = linkPreviewConfiguration ? linkPreviewConfiguration : undefined;
}
enable() {
ChatConfigurator.enable((dataSource) => {
return new LinkPreviewExtentionDecorator(dataSource, this.linkPreviewConfiguration);
});
}
}
//# sourceMappingURL=LinkPreviewExtention.js.map