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'; 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';
}
/** /**