From 967f9fc474f2903dd2c12ef4f662ead1592ea26c Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Thu, 9 Jun 2022 21:34:43 -0500
Subject: Add desktop shell

---
 src/platform/shell.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 src/platform/shell.tsx

(limited to 'src/platform/shell.tsx')

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>
+  )
+}
-- 
cgit 1.4.1

