mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-25 21:14:52 +08:00
isIOS and isAndroid utils are now constants instead of functions
This commit is contained in:
@@ -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';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user