import type { TurboModule } from 'react-native'; import { TurboModuleRegistry } from 'react-native'; /** * TurboModule spec for Blue Billywig Channel SDK * * This defines the native module interface for the new React Native architecture. */ export interface Spec extends TurboModule { /** * Get SDK version */ getVersion(): Promise; /** * Check if the SDK is properly initialized */ isInitialized(): Promise; /** * Prefetch channel data for faster loading */ prefetchChannel(channelUrl: string): Promise; /** * Clear cached data */ clearCache(): Promise; } // Use get() instead of getEnforcing() to avoid crash when module not registered export default TurboModuleRegistry.get('BBChannelModule');