UNPKG
swgs
Version:
latest (3.3.0)
3.3.0
swgs is a compatiblity layer between svg and react-native-svg
msand/swgs
swgs
/
crna-example
/
constants
/
Layout.js
13 lines
(10 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
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
, };