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] Coding style
Lyubo Marinovca94563c5191
diff --git a/react/features/base/media/components/native/Video.js b/react/features/base/media/components/native/Video.jsindex 471de32233..6cb32e4ab5 100644--- a/react/features/base/media/components/native/Video.js+++ b/react/features/base/media/components/native/Video.js@@ -3,7 +3,7 @@import React, { Component } from 'react';import { RTCView } from 'react-native-webrtc';-import { styles } from './styles';+import styles from './styles';/*** The React Native {@link Component} which is similar to Web'sdiff --git a/react/features/base/media/components/native/VideoTrack.js b/react/features/base/media/components/native/VideoTrack.jsindex a5ad3dd3f5..f9248ac9d9 100644--- a/react/features/base/media/components/native/VideoTrack.js+++ b/react/features/base/media/components/native/VideoTrack.js@@ -3,7 +3,7 @@ import { Animated } from 'react-native';import { connect } from 'react-redux';import AbstractVideoTrack from '../AbstractVideoTrack';-import { styles } from './styles';+import styles from './styles';/*** Component that renders video element for a specified video track.diff --git a/react/features/base/media/components/native/styles.js b/react/features/base/media/components/native/styles.jsindex b1f13f833e..274c03edc2 100644--- a/react/features/base/media/components/native/styles.js+++ b/react/features/base/media/components/native/styles.js@@ -1,15 +1,15 @@import { StyleSheet } from 'react-native';/**- * Make video element fill its container.+ * Make {@code Video} fill its container.*/const video = {flex: 1};/**- * Native-specific styles for media components.+ * The styles of the feature base/media.*/-export const styles = StyleSheet.create({+export default StyleSheet.create({video});diff --git a/react/features/base/participants/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.jsindex 272f3b4d64..cefea018a7 100644--- a/react/features/base/participants/components/ParticipantView.native.js+++ b/react/features/base/participants/components/ParticipantView.native.js@@ -12,7 +12,7 @@ import { getTrackByMediaTypeAndParticipant } from '../../tracks';import Avatar from './Avatar';import { getAvatarURL, getParticipantById } from '../functions';-import { styles } from './styles';+import styles from './styles';/*** Implements a React Component which depicts a specific participant's avatardiff --git a/react/features/base/participants/components/styles.js b/react/features/base/participants/components/styles.jsindex 23df688f3a..f33fea28c5 100644--- a/react/features/base/participants/components/styles.js+++ b/react/features/base/participants/components/styles.js@@ -1,11 +1,11 @@import { createStyleSheet } from '../../styles';/**- * The style of the avatar and participant view UI (components).+ * The styles of the feature base/participants.*/-export const styles = createStyleSheet({+export default createStyleSheet({/**- * ParticipantView style.+ * {@code ParticipantView} style.*/participantView: {alignItems: 'stretch',diff --git a/react/features/conference/components/Conference.native.js b/react/features/conference/components/Conference.native.jsindex 9941de18a1..0ac9c4e3eb 100644--- a/react/features/conference/components/Conference.native.js+++ b/react/features/conference/components/Conference.native.js@@ -9,7 +9,7 @@ import { LargeVideo } from '../../large-video';import { OverlayContainer } from '../../overlay';import { setToolboxVisible, Toolbox } from '../../toolbox';-import { styles } from './styles';+import styles from './styles';/*** The timeout in milliseconds after which the Toolbox will be hidden.@@ -145,19 +145,21 @@ class Conference extends Component {*/}<Filmstrip />+ {/*+ * The overlays need to be bellow the Toolbox so that the user+ * may tap the ToolbarButtons.+ */}+ <OverlayContainer />+{/** The Toolbox is in a stacking layer above the Filmstrip.*/}<Toolbox />{/*- * The dialogs and overlays are in the topmost stacking layers.- * Generally, the dialogs and overlays should not be visible at- * the same time so it is not really defined which one is above- * the other.+ * The dialogs are in the topmost stacking layers.*/}<DialogContainer />- <OverlayContainer /></Container>);}diff --git a/react/features/conference/components/styles.js b/react/features/conference/components/styles.jsindex 3973a78a70..8962e2c2c0 100644--- a/react/features/conference/components/styles.js+++ b/react/features/conference/components/styles.js@@ -5,11 +5,11 @@ import {} from '../../base/styles';/**- * The style of the conference UI (component).+ * The styles of the feature conference.*/-export const styles = createStyleSheet({+export default createStyleSheet({/**- * Conference style.+ * {@code Conference} style.*/conference: fixAndroidViewClipping({alignSelf: 'stretch',diff --git a/react/features/filmstrip/components/native/AudioMutedIndicator.js b/react/features/filmstrip/components/native/AudioMutedIndicator.jsindex b6597f70d2..b6b6591a51 100644--- a/react/features/filmstrip/components/native/AudioMutedIndicator.js+++ b/react/features/filmstrip/components/native/AudioMutedIndicator.js@@ -1,7 +1,7 @@import React, { Component } from 'react';import Icon from 'react-native-vector-icons/FontAwesome';-import { styles } from './styles';+import styles from './styles';/*** Thumbnail badge for displaying the audio mute status of a participant.diff --git a/react/features/filmstrip/components/native/DominantSpeakerIndicator.js b/react/features/filmstrip/components/native/DominantSpeakerIndicator.jsindex a8abd6c03d..442fc107e8 100644--- a/react/features/filmstrip/components/native/DominantSpeakerIndicator.js+++ b/react/features/filmstrip/components/native/DominantSpeakerIndicator.js@@ -2,7 +2,7 @@ import React, { Component } from 'react';import { View } from 'react-native';import Icon from 'react-native-vector-icons/FontAwesome';-import { styles } from './styles';+import styles from './styles';/*** Thumbnail badge showing that the participant is the dominant speaker indiff --git a/react/features/filmstrip/components/native/ModeratorIndicator.js b/react/features/filmstrip/components/native/ModeratorIndicator.jsindex ea0bfc9f05..d48be68438 100644--- a/react/features/filmstrip/components/native/ModeratorIndicator.js+++ b/react/features/filmstrip/components/native/ModeratorIndicator.js@@ -1,7 +1,7 @@import React, { Component } from 'react';import Icon from 'react-native-vector-icons/FontAwesome';-import { styles } from './styles';+import styles from './styles';/*** Thumbnail badge showing that the participant is a conference moderator.diff --git a/react/features/filmstrip/components/native/VideoMutedIndicator.js b/react/features/filmstrip/components/native/VideoMutedIndicator.jsindex d5b8a1af23..a43ac6ec09 100644--- a/react/features/filmstrip/components/native/VideoMutedIndicator.js+++ b/react/features/filmstrip/components/native/VideoMutedIndicator.js@@ -1,7 +1,7 @@import React, { Component } from 'react';import Icon from 'react-native-vector-icons/FontAwesome';-import { styles } from './styles';+import styles from './styles';/*** Thumbnail badge for displaying the video mute status of a participant.diff --git a/react/features/filmstrip/components/native/index.js b/react/features/filmstrip/components/native/index.jsindex 1ef90a3b84..36d8e9696e 100644--- a/react/features/filmstrip/components/native/index.js+++ b/react/features/filmstrip/components/native/index.js@@ -1,5 +1,5 @@export * from './AudioMutedIndicator';export * from './DominantSpeakerIndicator';export * from './ModeratorIndicator';-export * from './styles';+export { default as styles } from './styles';export * from './VideoMutedIndicator';diff --git a/react/features/filmstrip/components/native/styles.js b/react/features/filmstrip/components/native/styles.jsindex 33e9e9a92c..ded2d7e18e 100644--- a/react/features/filmstrip/components/native/styles.js+++ b/react/features/filmstrip/components/native/styles.js@@ -1,6 +1,6 @@import { ColorPalette, createStyleSheet } from '../../../base/styles';-import { styles as platformIndependentStyles } from '../styles';+import { default as platformIndependentStyles } from '../styles';/*** The base/default style of indicators such as audioMutedIndicator,@@ -15,9 +15,9 @@ const indicator = {};/**- * Native-specific styles for the filmstrip.+ * The styles of the feature filmstrip.*/-export const styles = createStyleSheet(platformIndependentStyles, {+export default createStyleSheet(platformIndependentStyles, {/*** Audio muted indicator style.diff --git a/react/features/filmstrip/components/styles.js b/react/features/filmstrip/components/styles.jsindex 1ad2f8931e..00850469a1 100644--- a/react/features/filmstrip/components/styles.js+++ b/react/features/filmstrip/components/styles.js@@ -2,9 +2,9 @@ import { Platform } from '../../base/react';import { BoxModel, ColorPalette } from '../../base/styles';/**- * Filmstrip related styles common to both Web and native.+ * The styles of the feature filmstrip common to both Web and native.*/-export const styles = {+export default {/*** Avatar style.*/diff --git a/react/features/large-video/components/LargeVideo.native.js b/react/features/large-video/components/LargeVideo.native.jsindex cac3a506c4..9812555955 100644--- a/react/features/large-video/components/LargeVideo.native.js+++ b/react/features/large-video/components/LargeVideo.native.js@@ -5,7 +5,7 @@ import { connect } from 'react-redux';import { ParticipantView } from '../../base/participants';-import { styles } from './styles';+import styles from './styles';/*** Implements a React {@link Component} which represents the large video (a.k.a.diff --git a/react/features/large-video/components/styles.js b/react/features/large-video/components/styles.jsindex 498e37d3c1..a3ac555478 100644--- a/react/features/large-video/components/styles.js+++ b/react/features/large-video/components/styles.js@@ -1,6 +1,6 @@import { ColorPalette, createStyleSheet } from '../../base/styles';-export const styles = createStyleSheet({+export default createStyleSheet({/*** The style of the avatar of the participant displayed in largeVideo. It's* an addition to the default style of Avatar.diff --git a/react/features/toolbox/components/Toolbox.native.js b/react/features/toolbox/components/Toolbox.native.jsindex a2aa182bd0..3df47ace6b 100644--- a/react/features/toolbox/components/Toolbox.native.js+++ b/react/features/toolbox/components/Toolbox.native.js@@ -13,7 +13,7 @@ import {abstractMapDispatchToProps,abstractMapStateToProps} from '../functions';-import { styles } from './styles';+import styles from './styles';import ToolbarButton from './ToolbarButton';/**diff --git a/react/features/toolbox/components/styles.js b/react/features/toolbox/components/styles.jsindex ebe0490f59..e2419bb41b 100644--- a/react/features/toolbox/components/styles.js+++ b/react/features/toolbox/components/styles.js@@ -70,7 +70,7 @@ const secondaryToolbarButtonIcon = {/*** The (conference) Toolbox/Toolbar related styles.*/-export const styles = createStyleSheet({+export default createStyleSheet({/*** The style of the toolbar button in {@link #primaryToolbar} which* hangs the current conference up.diff --git a/react/features/welcome/components/WelcomePage.native.js b/react/features/welcome/components/WelcomePage.native.jsindex 2da8c9db80..3be938bc5e 100644--- a/react/features/welcome/components/WelcomePage.native.js+++ b/react/features/welcome/components/WelcomePage.native.js@@ -7,7 +7,7 @@ import { Link, Text } from '../../base/react';import { ColorPalette } from '../../base/styles';import { AbstractWelcomePage, _mapStateToProps } from './AbstractWelcomePage';-import { styles } from './styles';+import styles from './styles';/*** The URL at which the privacy policy is available to the user.diff --git a/react/features/welcome/components/styles.js b/react/features/welcome/components/styles.jsindex 5e71578a64..56b5106745 100644--- a/react/features/welcome/components/styles.js+++ b/react/features/welcome/components/styles.js@@ -13,7 +13,7 @@ const TEXT_COLOR = ColorPalette.white;/*** The styles of WelcomePage.*/-export const styles = createStyleSheet({+export default createStyleSheet({/*** Join button style.*/