expo-duooomi-app/@share/components/Overlay.ts

10 lines
400 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Fragment } from 'react'
import { Platform } from 'react-native'
import { FullWindowOverlay } from 'react-native-screens'
// 为了兼容 iOS 和 Android我们需要使用 react-native-screens 的 FullWindowOverlay 组件
/** Don't use .ios file extension as bunchee can't bundle it properly */
const Overlay = Platform.OS === 'ios' ? FullWindowOverlay : Fragment
export default Overlay