From decbcefbd406ea1e5b21f45be790d45f1a855051 Mon Sep 17 00:00:00 2001 From: Zoltan Bettenbuk Date: Fri, 6 Apr 2018 16:11:01 -0500 Subject: [PATCH] [RN] Don't press on Conference in preparation for 'pinch to zoom' TouchableWithoutFeedback and TouchableHighlight interfere with the implementation of 'pinch to zoom' to come. We prepare for it by driving the onClick/onPress handler(s) out of Conference, through LargeVideo and ParticipantView into Video itself where the bulk of 'pinch to zoom' will be implemented. --- .../media/components/AbstractVideoTrack.js | 10 +++- .../base/media/components/native/Video.js | 26 +++++++---- .../components/ParticipantView.native.js | 39 +++++++++------- .../base/react/components/native/Pressable.js | 46 +++++++++++++++++++ .../base/react/components/native/index.js | 1 + .../components/Conference.native.js | 6 +-- .../components/LargeVideo.native.js | 14 +++++- 7 files changed, 110 insertions(+), 32 deletions(-) create mode 100644 react/features/base/react/components/native/Pressable.js diff --git a/react/features/base/media/components/AbstractVideoTrack.js b/react/features/base/media/components/AbstractVideoTrack.js index db0b99c9b..721a531f6 100644 --- a/react/features/base/media/components/AbstractVideoTrack.js +++ b/react/features/base/media/components/AbstractVideoTrack.js @@ -21,6 +21,12 @@ export default class AbstractVideoTrack extends Component { static propTypes = { dispatch: PropTypes.func, + /** + * Callback to invoke when the {@link Video} of + * {@code AbstractVideoTrack} is clicked/pressed. + */ + onPress: PropTypes.func, + videoTrack: PropTypes.object, waitForVideoStarted: PropTypes.bool, @@ -106,6 +112,7 @@ export default class AbstractVideoTrack extends Component {