Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 263 Bytes

Dimensions.md

File metadata and controls

16 lines (10 loc) · 263 Bytes

Dimensions

Get window's dimensions.

import {Dimensions} from 'reactors';

const {width, height} = Dimensions.get('window');

Resize

For DOM-based platform, you can listen on resize events:

Dimensions.onResize((width, height) => {});