Skip to content

Commit 2a7b5d9

Browse files
committed
docs: README for isTablet
1 parent f0a00d1 commit 2a7b5d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 |

0 commit comments

Comments
 (0)