import { NativeModules } from 'react-native'; const bubblesModule = NativeModules.Bubbles; class BubbleCustomDataService { public updateCustomDataForBubble(bubbleId: string, customData: {}) { bubblesModule.updateCustomDataForBubble(bubbleId, customData); } public deleteCustomDataForBubble(bubbleId: string) { bubblesModule.deleteCustomDataForBubble(bubbleId); } public getCustomDataFromBubble(bubbleId: string, key: string) { bubblesModule.getCustomDataFromBubble(bubbleId, key); } } export const BubbleCustomData = new BubbleCustomDataService();