Home > @snowplow/react-native-tracker > TrackerCore > setViewport
Set the viewport dimensions
Signature:
setViewport(width: string, height: string): void;| Parameter | Type | Description |
|---|---|---|
| width | string | viewport width |
| height | string | viewport height |
Returns:
void