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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.28",
3
+ "version": "1.4.29",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
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;