forked from
esb.lol/alf
Bluesky's "Application Layout Framework"
1import {Platform} from 'react-native'
2
3export const isIOS = Platform.OS === 'ios'
4export const isAndroid = Platform.OS === 'android'
5export const isNative = true
6export const isWeb = false
7// @ts-ignore
8export const isFabric = Boolean(global?.nativeFabricUIManager)
9
10export const web = (value: any) => (isWeb ? value : undefined)
11export const ios = (value: any) => (isIOS ? value : undefined)
12export const android = (value: any) => (isAndroid ? value : undefined)
13export const native = (value: any) => (isNative ? value : undefined)
14
15export const platform = Platform.select