isIOS and isAndroid utils are now constants instead of functions
This commit is contained in:
parent
a242df1daa
commit
3316a61bbb
|
@ -87,21 +87,9 @@ export function isString(value): Boolean {
|
||||||
return typeof value === 'string';
|
return typeof value === 'string';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// platform checks
|
||||||
* Returns true if on ios
|
export const isIOS = Platform.OS === 'ios';
|
||||||
* @returns {boolean}
|
export const isAndroid = Platform.OS === 'android';
|
||||||
*/
|
|
||||||
export function isIOS() {
|
|
||||||
return Platform.OS === 'ios';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns true if on android
|
|
||||||
* @returns {boolean}
|
|
||||||
*/
|
|
||||||
export function isAndroid() {
|
|
||||||
return Platform.OS === 'android';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue