react-native-boxes 1.4.28 → 1.4.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils.ts +11 -0
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -96,6 +96,17 @@ export function isWeb() {
|
|
|
96
96
|
return Platform.OS == 'web'
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
export function isNative() {
|
|
100
|
+
return Platform.OS !== 'web'
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function isAndroid() {
|
|
104
|
+
return Platform.OS == 'android'
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function isIOS() {
|
|
108
|
+
return Platform.OS == 'ios'
|
|
109
|
+
}
|
|
99
110
|
|
|
100
111
|
export function isDesktop() {
|
|
101
112
|
const windowWidth = Dimensions.get('window').width;
|