import { Platform } from 'react-native'; const ERROR_MESSAGE = 'This method is only available on iOS because it is not supported on Android'; export const isRunningOniOS = () => { if (Platform.OS !== 'ios') { throw new Error(ERROR_MESSAGE); } };