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
20 lines • 807 B
JavaScript
import { ChatConfigurator } from "../../shared/framework";
import { TextModerationExtensionDecorator } from "./TextModerationExtensionDecorator";
export class TextModerationExtension {
textModerationConfigurationInterface;
constructor(textModerationConfiguration) {
if (textModerationConfiguration != null) {
this.textModerationConfigurationInterface = textModerationConfiguration;
}
}
/**
* enable
* @description enables the Text moderation extension which includes Data profanity and data masking
*/
enable() {
ChatConfigurator.enable((dataSource) => {
return new TextModerationExtensionDecorator(dataSource, this.textModerationConfigurationInterface);
});
}
}
//# sourceMappingURL=TextModerationExtension.js.map