UNPKG

799 BJavaScriptView Raw
1import { Platform as ReactNativePlatform } from 'react-native';
2import { isDOMAvailable } from './environment/browser';
3const Platform = {
4 /**
5 * Denotes the currently running platform.
6 * Can be one of ios, android, web.
7 */
8 OS: ReactNativePlatform.OS,
9 /**
10 * Returns the value with the matching platform.
11 * Object keys can be any of ios, android, native, web, default.
12 *
13 * @ios ios, native, default
14 * @android android, native, default
15 * @web web, default
16 */
17 select: ReactNativePlatform.select,
18 /**
19 * Denotes if the DOM API is available in the current environment.
20 * The DOM is not available in native React runtimes and Node.js.
21 */
22 isDOMAvailable,
23};
24export default Platform;
25//# sourceMappingURL=Platform.js.map
\No newline at end of file