isIOS and isAndroid utils are now constants instead of functions

This commit is contained in:
Salakar 2017-09-24 13:19:24 +01:00
parent a242df1daa
commit 3316a61bbb
1 changed files with 3 additions and 15 deletions

View File

@ -87,21 +87,9 @@ export function isString(value): Boolean {
return typeof value === 'string';
}
/**
* Returns true if on ios
* @returns {boolean}
*/
export function isIOS() {
return Platform.OS === 'ios';
}
/**
* Returns true if on android
* @returns {boolean}
*/
export function isAndroid() {
return Platform.OS === 'android';
}
// platform checks
export const isIOS = Platform.OS === 'ios';
export const isAndroid = Platform.OS === 'android';
/**