Skip to main content

react-native-tracker.platformcontextretriever.getresolution

Home > @snowplow/react-native-tracker > PlatformContextRetriever > getResolution

PlatformContextRetriever.getResolution property

Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes

Signature:
getResolution?: () => Promise<string | undefined>;