blob: db60ed14907308544cd411d0e68d81ea307c1dc4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import React from 'react'
import {SafeAreaView} from 'react-native'
import {isDesktopWeb} from '../../platform/detection'
import {DesktopWebShell} from './desktop-web/shell'
export const Shell: React.FC = ({children}) => {
return isDesktopWeb ? (
<DesktopWebShell>{children}</DesktopWebShell>
) : (
<SafeAreaView>{children}</SafeAreaView>
)
}
|