So überprüfen Sie, ob die Expo -App im Web ausgeführt wird
import { Platform } from 'react-native';
if (Platform.OS === 'ios') {
// do something for ios
} else if (Platform.OS === 'android') {
// other thing for android
} else if (Platform.OS === 'web') {
// it's on web!
} else {
// you probably won't end up here unless you support another platform!
}
REX OMIV