File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,12 +33,14 @@ import {
3333 ScreenHeight ,
3434 isIOS ,
3535 isAndroid ,
36+ isTablet
3637} from " @freakycoder/react-native-helpers" ;
3738
3839<View >
3940 <Container title = " Device OS" subtitle = { isIOS ? " iOS" : " Android" } />
4041 <Container title = " Screen Height" subtitle = { ScreenHeight } />
4142 <Container title = " Screen Width" subtitle = { ScreenWidth } />
43+ <Container title = " Tablet?: " subtitle = { isTablet ? " Tablet" : " Phone" } />
4244</View >;
4345```
4446
@@ -112,6 +114,7 @@ import { numberFormat } from "@freakycoder/react-native-helpers";
112114|-------------------|:-------:|----------------------------------------------------------------------------------------------------------------------------|
113115| isIOS | boolean | returns if it is an iOS device or not |
114116| isAndroid | boolean | returns if it is an Android device or not |
117+ | isTablet | boolean | returns if it is a tablet or phone |
115118| ScreenWidth | number | get the device's screen width |
116119| ScreenHeight | number | get the device's screen height |
117120| ScreenScale | number | get the device's screen scale ratio |
You can’t perform that action at this time.
0 commit comments