blob: ec8d51e1fe7d91d551b950ad9acbe9f664cb86c7 (
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 './detection'
import {DesktopWebShell} from './desktop-web/shell'
export const Shell: React.FC = ({children}) => {
return isDesktopWeb ? (
<DesktopWebShell>{children}</DesktopWebShell>
) : (
<SafeAreaView>{children}</SafeAreaView>
)
}
|