Add desktop shell
This commit is contained in:
parent
802222fe71
commit
967f9fc474
16 changed files with 269 additions and 138 deletions
11
src/platform/detection.ts
Normal file
11
src/platform/detection.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import {Platform} from 'react-native'
|
||||
|
||||
export const isIOS = Platform.OS === 'ios'
|
||||
export const isAndroid = Platform.OS === 'android'
|
||||
export const isNative = isIOS || isAndroid
|
||||
export const isWeb = !isNative
|
||||
export const isMobileWeb =
|
||||
isWeb &&
|
||||
// @ts-ignore we know window exists -prf
|
||||
global.window.matchMedia('only screen and (max-width: 1000px)')?.matches
|
||||
export const isDesktopWeb = isWeb && !isMobileWeb
|
||||
Loading…
Add table
Add a link
Reference in a new issue