mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 23:57:48 +00:00
[RN] Add remote video menu
This commit is contained in:
committed by
Zoltan Bettenbuk
parent
d4c0840659
commit
6b68fba220
@@ -31,6 +31,12 @@ export type Props = {
|
||||
*/
|
||||
onClick?: ?Function,
|
||||
|
||||
/**
|
||||
* The event handler/listener to be invoked when this
|
||||
* {@code AbstractContainer} is long pressed on React Native.
|
||||
*/
|
||||
onLongPress?: ?Function,
|
||||
|
||||
/**
|
||||
* The style (as in stylesheet) to be applied to this
|
||||
* {@code AbstractContainer}.
|
||||
|
||||
@@ -27,6 +27,7 @@ export default class Container<P: Props> extends AbstractContainer<P> {
|
||||
accessibilityLabel,
|
||||
accessible,
|
||||
onClick,
|
||||
onLongPress,
|
||||
touchFeedback = onClick,
|
||||
underlayColor,
|
||||
visible = true,
|
||||
@@ -38,7 +39,7 @@ export default class Container<P: Props> extends AbstractContainer<P> {
|
||||
return null;
|
||||
}
|
||||
|
||||
const onClickOrTouchFeedback = onClick || touchFeedback;
|
||||
const onClickOrTouchFeedback = onClick || onLongPress || touchFeedback;
|
||||
let element
|
||||
= super._render(
|
||||
View,
|
||||
@@ -57,6 +58,7 @@ export default class Container<P: Props> extends AbstractContainer<P> {
|
||||
{
|
||||
accessibilityLabel,
|
||||
accessible,
|
||||
onLongPress,
|
||||
onPress: onClick,
|
||||
...touchFeedback && { underlayColor }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user