[RN] Add remote video menu

This commit is contained in:
Bettenbuk Zoltan
2018-12-19 19:40:17 +01:00
committed by Zoltan Bettenbuk
parent d4c0840659
commit 6b68fba220
27 changed files with 582 additions and 65 deletions

View File

@@ -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}.

View File

@@ -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 }
},