diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-06-09 21:34:43 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-06-09 21:34:43 -0500 |
commit | 967f9fc474f2903dd2c12ef4f662ead1592ea26c (patch) | |
tree | af90380121af16ce2382d725fee3d50cd6332598 /src/platform/shell.tsx | |
parent | 802222fe7181303d710607129e1c74427f07c97c (diff) | |
download | voidsky-967f9fc474f2903dd2c12ef4f662ead1592ea26c.tar.zst |
Add desktop shell
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> + ) +} |