Initial commit: expo-popcore-app
This commit is contained in:
9
components/ui/Overlay.js
Normal file
9
components/ui/Overlay.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user