Dimensions.get() returns an object like
Object {
"screen": Object {
"fontScale": 1,
"height": 375,
"scale": 2,
"width": 667,
},
"window": Object {
"fontScale": 1,
"height": 375,
"scale": 2,
"width": 667,
},
}
Height
and width
are probably screen/window height and width in dp (density-independent pixels), but what do fontScale
and scale
stand for? I'm trying to figure out if I could use the scale
value for responsive layout on Retina screens. Thanks!