mirror of https://github.com/jitsi/jitsi-meet
Move all sheets to render in a new container which uses FullWindowOverlay, which allows rendering above presentation controllers on iOS.pull/11709/head jitsi-meet_7444
parent
0e98f90205
commit
6ad279f029
@ -0,0 +1,26 @@ |
||||
import React from 'react'; |
||||
import { Platform, StyleSheet, View } from 'react-native'; |
||||
import { FullWindowOverlay } from 'react-native-screens'; |
||||
import { useSelector } from 'react-redux'; |
||||
|
||||
const Wrapper = Platform.select({ |
||||
ios: FullWindowOverlay, |
||||
default: View |
||||
}); |
||||
|
||||
const BottomSheetContainer: () => JSX.Element = () => { |
||||
const { sheet, sheetProps } = useSelector(state => state['features/base/dialog']); |
||||
const { reducedUI } = useSelector(state => state['features/base/responsive-ui']); |
||||
|
||||
if (!sheet || reducedUI) { |
||||
return null; |
||||
} |
||||
|
||||
return ( |
||||
<Wrapper style={StyleSheet.absoluteFill}> |
||||
{ React.createElement(sheet, sheetProps) } |
||||
</Wrapper> |
||||
); |
||||
} |
||||
|
||||
export default BottomSheetContainer; |
@ -1,33 +1 @@ |
||||
// @flow
|
||||
import { hideDialog } from '../base/dialog'; |
||||
|
||||
import { RemoteVideoMenu, SharedVideoMenu, LocalVideoMenu } from './components/native'; |
||||
|
||||
/** |
||||
* Hides the local video menu. |
||||
* |
||||
* @returns {Function} |
||||
*/ |
||||
export function hideLocalVideoMenu() { |
||||
return hideDialog(LocalVideoMenu); |
||||
} |
||||
|
||||
/** |
||||
* Hides the remote video menu. |
||||
* |
||||
* @returns {Function} |
||||
*/ |
||||
export function hideRemoteVideoMenu() { |
||||
return hideDialog(RemoteVideoMenu); |
||||
} |
||||
|
||||
/** |
||||
* Hides the shared video menu. |
||||
* |
||||
* @returns {Function} |
||||
*/ |
||||
export function hideSharedVideoMenu() { |
||||
return hideDialog(SharedVideoMenu); |
||||
} |
||||
|
||||
export * from './actions.any'; |
||||
|
Loading…
Reference in new issue