add window dimensions to global styles
parent
d624b7cf58
commit
678f75b495
|
@ -1,4 +1,4 @@
|
||||||
import {StyleProp, StyleSheet, TextStyle} from 'react-native'
|
import {Dimensions, StyleProp, StyleSheet, TextStyle} from 'react-native'
|
||||||
import {Theme, TypographyVariant} from './ThemeContext'
|
import {Theme, TypographyVariant} from './ThemeContext'
|
||||||
import {isMobileWeb} from 'platform/detection'
|
import {isMobileWeb} from 'platform/detection'
|
||||||
|
|
||||||
|
@ -169,6 +169,10 @@ export const s = StyleSheet.create({
|
||||||
w100pct: {width: '100%'},
|
w100pct: {width: '100%'},
|
||||||
h100pct: {height: '100%'},
|
h100pct: {height: '100%'},
|
||||||
hContentRegion: isMobileWeb ? {flex: 1} : {height: '100%'},
|
hContentRegion: isMobileWeb ? {flex: 1} : {height: '100%'},
|
||||||
|
window: {
|
||||||
|
width: Dimensions.get('window').width,
|
||||||
|
height: Dimensions.get('window').height,
|
||||||
|
},
|
||||||
|
|
||||||
// text align
|
// text align
|
||||||
textLeft: {textAlign: 'left'},
|
textLeft: {textAlign: 'left'},
|
||||||
|
|
Loading…
Reference in New Issue