Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { Dimensions } from 'react-native';
const width = Dimensions.get('window').width;
const height = Dimensions.get('window').height;
export default {
window: {
width,
height,
},
isSmallDevice: width < 375 || height <720,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment