11 lines
247 B
JavaScript
11 lines
247 B
JavaScript
|
import Platform from '../react/Platform';
|
||
|
|
||
|
/**
|
||
|
* Returns whether or not the current environment is a mobile device.
|
||
|
*
|
||
|
* @returns {boolean}
|
||
|
*/
|
||
|
export function isMobileBrowser() {
|
||
|
return Platform.OS === 'android' || Platform.OS === 'ios';
|
||
|
}
|