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