diff options
Diffstat (limited to 'src/view/shell/index.tsx')
-rw-r--r-- | src/view/shell/index.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx new file mode 100644 index 000000000..db60ed149 --- /dev/null +++ b/src/view/shell/index.tsx @@ -0,0 +1,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> + ) +} |