Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
[RN] Add ability to disable a ToolbarButton
Saúl Ibarra Corretgé055df1c12e90
diff --git a/react/features/toolbox/components/ToolbarButton.native.js b/react/features/toolbox/components/ToolbarButton.native.jsindex 13b134c680..ef95fd5225 100644--- a/react/features/toolbox/components/ToolbarButton.native.js+++ b/react/features/toolbox/components/ToolbarButton.native.js@@ -21,9 +21,9 @@ class ToolbarButton extends AbstractToolbarButton {...AbstractToolbarButton.propTypes,/**- * Used to dispatch an action when the button is clicked.+ * Indicates if this button is disabled or not.*/- dispatch: React.PropTypes.func+ disabled: React.PropTypes.bool};/**@@ -37,12 +37,9 @@ class ToolbarButton extends AbstractToolbarButton {_renderButton(children) {const props = {};+ 'disabled' in this.props && (props.disabled = this.props.disabled);'onClick' in this.props && (props.onPress = event => {- const action = this.props.onClick(event);-- if (action) {- this.props.dispatch(action);- }+ this.props.onClick(event);});'style' in this.props && (props.style = this.props.style);'underlayColor' in this.props