MCPcopy Create free account
hub / github.com/shoutem/ui / responsiveWidth

Function responsiveWidth

theme.js:54–57  ·  view source on GitHub ↗
(dimension, actualRefVal = window.width)

Source from the content-addressed store, hash-verified

52}
53
54export function responsiveWidth(dimension, actualRefVal = window.width) {
55 // 375 is iPhone width
56 return getSizeRelativeToReference(dimension, 375, actualRefVal);
57}
58
59export function responsiveHeight(dimension, actualRefVal = window.height) {
60 // 812 is iPhone height

Callers 1

theme.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected