init: 初始化模板项目
This commit is contained in:
10
packages/app/provider/safe-area/index.web.tsx
Normal file
10
packages/app/provider/safe-area/index.web.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
// on Web, we don't use React Navigation, so we are going to avoid the safe area provider
|
||||
// instead, we just have a no-op here
|
||||
// for more, see: https://solito.dev/recipes/tree-shaking
|
||||
|
||||
// if you need safe area hooks yourself, you can implement this yourself
|
||||
// however, you may be better off using the CSS selector for env(safe-area-inset-top) on Web
|
||||
|
||||
// for more, see the `./use-safe-area.web.ts` file
|
||||
|
||||
export const SafeArea = ({ children }: { children: React.ReactElement }) => <>{children}</>
|
||||
Reference in New Issue
Block a user