internal export enum Platform { IOS = 'IOS' , ANDROID = 'ANDROID' } param id param platform internal export function assertIdDefined ( id , platform ) { if ( ! id ) { if ( platform === Platform . IOS ) { throw new Error ( 'No bundleId was specified for iOS' ) ; } else if ( platform === Platform . ANDROID ) { throw new Error ( 'No appId was specified for Android' ) ; } } } param maybeString returns internal export function isString < T > ( maybeString ) { return typeof maybeString === 'string' ; } internal export const UNSUPPORTED_PLATFORM_ERROR = 'You are using an unsupported platform, only Android and iOS are supported!' ; internal export const IOS_SELECTOR_NULL_ERROR = 'iOS selector is null, but an attempt was made to access it on iOS. Please define a selector if you want to use it on iOS.' ; internal export const ANDROID_SELECTOR_NULL_ERROR = 'Android selector is null, but an attempt was made to access it on Android. Please define a selector if you want to use it on Android.' ; internal export const SELECTOR_NULL_ERROR = 'Both Android and iOS Selectors are null, please define at least a selector for one platform.' ; internal export const COMBINATION_SELECTOR_NULL_ERROR = 'A selector with an Android selector of null cannot be combined with an iOS selector of null, as the resulting selector would be null on both platforms.' ;