Live video on the AT Protocol
1import { Platform } from "react-native";
2import { topSafeHeight } from "./platform";
3import { IsPlatform } from "./usePlatform.shared";
4
5export default function usePlatform(): IsPlatform {
6 return {
7 topSafeHeight,
8 isNative: true,
9 isIOS: Platform.OS === "ios",
10 isAndroid: Platform.OS === "android",
11 isWeb: false,
12 isElectron: false,
13 isBrowser: false,
14 isSafari: false,
15 isChrome: false,
16 isFirefox: false,
17 };
18}