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
22 lines • 803 B
JavaScript
import { ChatConfigurator } from "../../shared/framework";
import { StickerConfiguration } from "./StickerConfiguration";
import { StickersExtensionDecorator } from "./StickersExtensionDecorator";
export class StickersExtension {
//Configuration prop taken as optional field in constructor
configuration;
constructor(stickerConfiguration) {
this.configuration = new StickerConfiguration({
...stickerConfiguration
});
}
//override enable method from ExtensionsDataSource interface
enable() {
ChatConfigurator.enable((dataSource) => {
return new StickersExtensionDecorator({
dataSource,
configration: this.configuration
});
});
}
}
//# sourceMappingURL=StickersExtension.js.map