File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,14 @@ import {
33
33
ScreenHeight ,
34
34
isIOS ,
35
35
isAndroid ,
36
+ isTablet
36
37
} from " @freakycoder/react-native-helpers" ;
37
38
38
39
<View >
39
40
<Container title = " Device OS" subtitle = { isIOS ? " iOS" : " Android" } />
40
41
<Container title = " Screen Height" subtitle = { ScreenHeight } />
41
42
<Container title = " Screen Width" subtitle = { ScreenWidth } />
43
+ <Container title = " Tablet?: " subtitle = { isTablet ? " Tablet" : " Phone" } />
42
44
</View >;
43
45
```
44
46
@@ -112,6 +114,7 @@ import { numberFormat } from "@freakycoder/react-native-helpers";
112
114
|-------------------|:-------:|----------------------------------------------------------------------------------------------------------------------------|
113
115
| isIOS | boolean | returns if it is an iOS device or not |
114
116
| isAndroid | boolean | returns if it is an Android device or not |
117
+ | isTablet | boolean | returns if it is a tablet or phone |
115
118
| ScreenWidth | number | get the device's screen width |
116
119
| ScreenHeight | number | get the device's screen height |
117
120
| ScreenScale | number | get the device's screen scale ratio |
You can’t perform that action at this time.
0 commit comments