Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Rearrange recording feature files

Bettenbuk Zoltan71edea8aac47
diff --git a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js
index 02cdb51cbb..445d027b55 100644
--- a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js
+++ b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js
@@ -10,8 +10,10 @@ import {
import { getActiveSession } from '../../functions';
-import StartLiveStreamDialog from './StartLiveStreamDialog';
-import StopLiveStreamDialog from './StopLiveStreamDialog';
+import {
+ StartLiveStreamDialog,
+ StopLiveStreamDialog
+} from './_';
/**
* The type of the React {@code Component} props of
diff --git a/react/features/recording/components/LiveStream/GoogleSigninForm.web.js b/react/features/recording/components/LiveStream/GoogleSigninForm.web.js
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/react/features/recording/components/LiveStream/_.native.js b/react/features/recording/components/LiveStream/_.native.js
new file mode 100644
index 0000000000..a32ec60612
--- /dev/null
+++ b/react/features/recording/components/LiveStream/_.native.js
@@ -0,0 +1,3 @@
+// @flow
+
+export * from './native';
diff --git a/react/features/recording/components/LiveStream/_.web.js b/react/features/recording/components/LiveStream/_.web.js
new file mode 100644
index 0000000000..40d5f46528
--- /dev/null
+++ b/react/features/recording/components/LiveStream/_.web.js
@@ -0,0 +1,3 @@
+// @flow
+
+export * from './web';
diff --git a/react/features/recording/components/LiveStream/index.js b/react/features/recording/components/LiveStream/index.js
index 07b9ab7b6a..bf0c7deb0e 100644
--- a/react/features/recording/components/LiveStream/index.js
+++ b/react/features/recording/components/LiveStream/index.js
@@ -1,3 +1,3 @@
-export { default as LiveStreamButton } from './LiveStreamButton';
-export { default as StartLiveStreamDialog } from './StartLiveStreamDialog';
-export { default as StopLiveStreamDialog } from './StopLiveStreamDialog';
+// @flow
+
+export * from './_';
diff --git a/react/features/recording/components/LiveStream/GoogleSigninForm.native.js b/react/features/recording/components/LiveStream/native/GoogleSigninForm.js
similarity index 98%
rename from react/features/recording/components/LiveStream/GoogleSigninForm.native.js
rename to react/features/recording/components/LiveStream/native/GoogleSigninForm.js
index 40efe80cfe..131d51a2bb 100644
--- a/react/features/recording/components/LiveStream/GoogleSigninForm.native.js
+++ b/react/features/recording/components/LiveStream/native/GoogleSigninForm.js
@@ -4,7 +4,7 @@ import React, { Component } from 'react';
import { Platform, Text, View } from 'react-native';
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import {
GOOGLE_API_STATES,
@@ -12,7 +12,7 @@ import {
googleApi,
GoogleSignInButton,
setGoogleAPIState
-} from '../../../google-api';
+} from '../../../../google-api';
import styles from './styles';
diff --git a/react/features/recording/components/LiveStream/LiveStreamButton.native.js b/react/features/recording/components/LiveStream/native/LiveStreamButton.js
similarity index 81%
rename from react/features/recording/components/LiveStream/LiveStreamButton.native.js
rename to react/features/recording/components/LiveStream/native/LiveStreamButton.js
index 5e13f58ea2..d43579793f 100644
--- a/react/features/recording/components/LiveStream/LiveStreamButton.native.js
+++ b/react/features/recording/components/LiveStream/native/LiveStreamButton.js
@@ -2,12 +2,12 @@
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import AbstractLiveStreamButton, {
_mapStateToProps,
type Props
-} from './AbstractLiveStreamButton';
+} from '../AbstractLiveStreamButton';
/**
* An implementation of a button for starting and stopping live streaming.
diff --git a/react/features/recording/components/LiveStream/StartLiveStreamDialog.native.js b/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js
similarity index 94%
rename from react/features/recording/components/LiveStream/StartLiveStreamDialog.native.js
rename to react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js
index 0e0bcfb993..4ad93bdb8b 100644
--- a/react/features/recording/components/LiveStream/StartLiveStreamDialog.native.js
+++ b/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js
@@ -4,14 +4,15 @@ import React from 'react';
import { View } from 'react-native';
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
-import { googleApi } from '../../../google-api';
+import { translate } from '../../../../base/i18n';
+import { googleApi } from '../../../../google-api';
-import { setLiveStreamKey } from '../../actions';
+import { setLiveStreamKey } from '../../../actions';
import AbstractStartLiveStreamDialog,
-{ _mapStateToProps, type Props } from './AbstractStartLiveStreamDialog';
+{ _mapStateToProps, type Props } from '../AbstractStartLiveStreamDialog';
+
import GoogleSigninForm from './GoogleSigninForm';
import StreamKeyForm from './StreamKeyForm';
import StreamKeyPicker from './StreamKeyPicker';
diff --git a/react/features/recording/components/LiveStream/StopLiveStreamDialog.native.js b/react/features/recording/components/LiveStream/native/StopLiveStreamDialog.js
similarity index 83%
rename from react/features/recording/components/LiveStream/StopLiveStreamDialog.native.js
rename to react/features/recording/components/LiveStream/native/StopLiveStreamDialog.js
index 764a7c4f85..808b857a4e 100644
--- a/react/features/recording/components/LiveStream/StopLiveStreamDialog.native.js
+++ b/react/features/recording/components/LiveStream/native/StopLiveStreamDialog.js
@@ -3,12 +3,12 @@
import React from 'react';
import { connect } from 'react-redux';
-import { DialogContent } from '../../../base/dialog';
-import { translate } from '../../../base/i18n';
+import { DialogContent } from '../../../../base/dialog';
+import { translate } from '../../../../base/i18n';
import AbstractStopLiveStreamDialog, {
_mapStateToProps
-} from './AbstractStopLiveStreamDialog';
+} from '../AbstractStopLiveStreamDialog';
/**
* A React Component for confirming the participant wishes to stop the currently
diff --git a/react/features/recording/components/LiveStream/StreamKeyForm.native.js b/react/features/recording/components/LiveStream/native/StreamKeyForm.js
similarity index 96%
rename from react/features/recording/components/LiveStream/StreamKeyForm.native.js
rename to react/features/recording/components/LiveStream/native/StreamKeyForm.js
index 409fc4efc6..91606ff627 100644
--- a/react/features/recording/components/LiveStream/StreamKeyForm.native.js
+++ b/react/features/recording/components/LiveStream/native/StreamKeyForm.js
@@ -3,11 +3,12 @@
import React from 'react';
import { Linking, Text, TextInput, TouchableOpacity, View } from 'react-native';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import AbstractStreamKeyForm, {
type Props
-} from './AbstractStreamKeyForm';
+} from '../AbstractStreamKeyForm';
+
import styles from './styles';
/**
diff --git a/react/features/recording/components/LiveStream/StreamKeyPicker.native.js b/react/features/recording/components/LiveStream/native/StreamKeyPicker.js
similarity index 98%
rename from react/features/recording/components/LiveStream/StreamKeyPicker.native.js
rename to react/features/recording/components/LiveStream/native/StreamKeyPicker.js
index 89eb45197f..954bce01fd 100644
--- a/react/features/recording/components/LiveStream/StreamKeyPicker.native.js
+++ b/react/features/recording/components/LiveStream/native/StreamKeyPicker.js
@@ -3,7 +3,7 @@
import React, { Component } from 'react';
import { Text, TouchableHighlight, View } from 'react-native';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import styles, { ACTIVE_OPACITY, TOUCHABLE_UNDERLAY } from './styles';
diff --git a/react/features/recording/components/LiveStream/native/index.js b/react/features/recording/components/LiveStream/native/index.js
new file mode 100644
index 0000000000..fa574bac74
--- /dev/null
+++ b/react/features/recording/components/LiveStream/native/index.js
@@ -0,0 +1,5 @@
+// @flow
+
+export { default as LiveStreamButton } from './LiveStreamButton';
+export { default as StartLiveStreamDialog } from './StartLiveStreamDialog';
+export { default as StopLiveStreamDialog } from './StopLiveStreamDialog';
diff --git a/react/features/recording/components/LiveStream/styles.native.js b/react/features/recording/components/LiveStream/native/styles.js
similarity index 95%
rename from react/features/recording/components/LiveStream/styles.native.js
rename to react/features/recording/components/LiveStream/native/styles.js
index 07fc2a17c8..8cb4d21b86 100644
--- a/react/features/recording/components/LiveStream/styles.native.js
+++ b/react/features/recording/components/LiveStream/native/styles.js
@@ -1,6 +1,10 @@
// @flow
-import { BoxModel, ColorPalette, createStyleSheet } from '../../../base/styles';
+import {
+ BoxModel,
+ ColorPalette,
+ createStyleSheet
+} from '../../../../base/styles';
/**
* Opacity of the TouchableHighlight.
diff --git a/react/features/recording/components/LiveStream/styles.web.js b/react/features/recording/components/LiveStream/styles.web.js
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/react/features/recording/components/LiveStream/LiveStreamButton.web.js b/react/features/recording/components/LiveStream/web/LiveStreamButton.js
similarity index 96%
rename from react/features/recording/components/LiveStream/LiveStreamButton.web.js
rename to react/features/recording/components/LiveStream/web/LiveStreamButton.js
index 7d4346a381..3921440db3 100644
--- a/react/features/recording/components/LiveStream/LiveStreamButton.web.js
+++ b/react/features/recording/components/LiveStream/web/LiveStreamButton.js
@@ -3,13 +3,13 @@
import React from 'react';
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
-import { Container, Text } from '../../../base/react';
+import { translate } from '../../../../base/i18n';
+import { Container, Text } from '../../../../base/react';
import AbstractLiveStreamButton, {
_mapStateToProps as _abstractMapStateToProps,
type Props as AbstractProps
-} from './AbstractLiveStreamButton';
+} from '../AbstractLiveStreamButton';
declare var interfaceConfig: Object;
diff --git a/react/features/recording/components/LiveStream/StartLiveStreamDialog.web.js b/react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js
similarity index 98%
rename from react/features/recording/components/LiveStream/StartLiveStreamDialog.web.js
rename to react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js
index e46d1ca4c1..419b8a8dde 100644
--- a/react/features/recording/components/LiveStream/StartLiveStreamDialog.web.js
+++ b/react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js
@@ -4,7 +4,7 @@ import Spinner from '@atlaskit/spinner';
import React from 'react';
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import {
GOOGLE_API_STATES,
@@ -15,12 +15,13 @@ import {
showAccountSelection,
signIn,
updateProfile
-} from '../../../google-api';
+} from '../../../../google-api';
import AbstractStartLiveStreamDialog, {
_mapStateToProps as _abstractMapStateToProps,
type Props as AbstractProps
-} from './AbstractStartLiveStreamDialog';
+} from '../AbstractStartLiveStreamDialog';
+
import StreamKeyPicker from './StreamKeyPicker';
import StreamKeyForm from './StreamKeyForm';
diff --git a/react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js b/react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js
similarity index 86%
rename from react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js
rename to react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js
index fb334deab0..14cc6e03a3 100644
--- a/react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js
+++ b/react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js
@@ -2,11 +2,11 @@
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import AbstractStopLiveStreamDialog, {
_mapStateToProps
-} from './AbstractStopLiveStreamDialog';
+} from '../AbstractStopLiveStreamDialog';
/**
* A React Component for confirming the participant wishes to stop the currently
diff --git a/react/features/recording/components/LiveStream/StreamKeyForm.web.js b/react/features/recording/components/LiveStream/web/StreamKeyForm.js
similarity index 96%
rename from react/features/recording/components/LiveStream/StreamKeyForm.web.js
rename to react/features/recording/components/LiveStream/web/StreamKeyForm.js
index 97c0cac0a4..9ce96d6212 100644
--- a/react/features/recording/components/LiveStream/StreamKeyForm.web.js
+++ b/react/features/recording/components/LiveStream/web/StreamKeyForm.js
@@ -3,11 +3,11 @@
import { FieldTextStateless } from '@atlaskit/field-text';
import React from 'react';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import AbstractStreamKeyForm, {
type Props
-} from './AbstractStreamKeyForm';
+} from '../AbstractStreamKeyForm';
/**
* A React Component for entering a key for starting a YouTube live stream.
diff --git a/react/features/recording/components/LiveStream/StreamKeyPicker.web.js b/react/features/recording/components/LiveStream/web/StreamKeyPicker.js
similarity index 99%
rename from react/features/recording/components/LiveStream/StreamKeyPicker.web.js
rename to react/features/recording/components/LiveStream/web/StreamKeyPicker.js
index 9b0be54cdc..f83ae05dd8 100644
--- a/react/features/recording/components/LiveStream/StreamKeyPicker.web.js
+++ b/react/features/recording/components/LiveStream/web/StreamKeyPicker.js
@@ -7,7 +7,7 @@ import {
} from '@atlaskit/dropdown-menu';
import React, { PureComponent } from 'react';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
/**
* The type of the React {@code Component} props of {@link StreamKeyPicker}.
diff --git a/react/features/recording/components/LiveStream/web/index.js b/react/features/recording/components/LiveStream/web/index.js
new file mode 100644
index 0000000000..fa574bac74
--- /dev/null
+++ b/react/features/recording/components/LiveStream/web/index.js
@@ -0,0 +1,5 @@
+// @flow
+
+export { default as LiveStreamButton } from './LiveStreamButton';
+export { default as StartLiveStreamDialog } from './StartLiveStreamDialog';
+export { default as StopLiveStreamDialog } from './StopLiveStreamDialog';
diff --git a/react/features/recording/components/Recording/AbstractRecordButton.js b/react/features/recording/components/Recording/AbstractRecordButton.js
index 4270f82395..1e642c3a2b 100644
--- a/react/features/recording/components/Recording/AbstractRecordButton.js
+++ b/react/features/recording/components/Recording/AbstractRecordButton.js
@@ -19,7 +19,7 @@ import {
import { getActiveSession } from '../../functions';
import StartRecordingDialog from './StartRecordingDialog';
-import StopRecordingDialog from './StopRecordingDialog';
+import { StopRecordingDialog } from './_';
/**
* The type of the React {@code Component} props of
diff --git a/react/features/recording/components/Recording/_.native.js b/react/features/recording/components/Recording/_.native.js
new file mode 100644
index 0000000000..a32ec60612
--- /dev/null
+++ b/react/features/recording/components/Recording/_.native.js
@@ -0,0 +1,3 @@
+// @flow
+
+export * from './native';
diff --git a/react/features/recording/components/Recording/_.web.js b/react/features/recording/components/Recording/_.web.js
new file mode 100644
index 0000000000..40d5f46528
--- /dev/null
+++ b/react/features/recording/components/Recording/_.web.js
@@ -0,0 +1,3 @@
+// @flow
+
+export * from './web';
diff --git a/react/features/recording/components/Recording/index.js b/react/features/recording/components/Recording/index.js
index 1988548359..bf0c7deb0e 100644
--- a/react/features/recording/components/Recording/index.js
+++ b/react/features/recording/components/Recording/index.js
@@ -1,3 +1,3 @@
-export { default as RecordButton } from './RecordButton';
-export { default as StartRecordingDialog } from './StartRecordingDialog';
-export { default as StopRecordingDialog } from './StopRecordingDialog';
+// @flow
+
+export * from './_';
diff --git a/react/features/recording/components/Recording/RecordButton.native.js b/react/features/recording/components/Recording/native/RecordButton.js
similarity index 82%
rename from react/features/recording/components/Recording/RecordButton.native.js
rename to react/features/recording/components/Recording/native/RecordButton.js
index 62e283e939..5c77a4a37f 100644
--- a/react/features/recording/components/Recording/RecordButton.native.js
+++ b/react/features/recording/components/Recording/native/RecordButton.js
@@ -2,12 +2,12 @@
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import AbstractRecordButton, {
_mapStateToProps,
type Props
-} from './AbstractRecordButton';
+} from '../AbstractRecordButton';
/**
* An implementation of a button for starting and stopping recording.
diff --git a/react/features/recording/components/Recording/StopRecordingDialog.native.js b/react/features/recording/components/Recording/native/StopRecordingDialog.js
similarity index 83%
rename from react/features/recording/components/Recording/StopRecordingDialog.native.js
rename to react/features/recording/components/Recording/native/StopRecordingDialog.js
index acee52dfe2..9bf9216fc4 100644
--- a/react/features/recording/components/Recording/StopRecordingDialog.native.js
+++ b/react/features/recording/components/Recording/native/StopRecordingDialog.js
@@ -3,13 +3,13 @@
import React from 'react';
import { connect } from 'react-redux';
-import { DialogContent } from '../../../base/dialog';
-import { translate } from '../../../base/i18n';
+import { DialogContent } from '../../../../base/dialog';
+import { translate } from '../../../../base/i18n';
import AbstractStopRecordingDialog, {
type Props,
_mapStateToProps
-} from './AbstractStopRecordingDialog';
+} from '../AbstractStopRecordingDialog';
/**
* React Component for getting confirmation to stop a file recording session in
diff --git a/react/features/recording/components/Recording/native/index.js b/react/features/recording/components/Recording/native/index.js
new file mode 100644
index 0000000000..852c69138b
--- /dev/null
+++ b/react/features/recording/components/Recording/native/index.js
@@ -0,0 +1,4 @@
+// @flow
+
+export { default as RecordButton } from './RecordButton';
+export { default as StopRecordingDialog } from './StopRecordingDialog';
diff --git a/react/features/recording/components/Recording/RecordButton.web.js b/react/features/recording/components/Recording/web/RecordButton.js
similarity index 97%
rename from react/features/recording/components/Recording/RecordButton.web.js
rename to react/features/recording/components/Recording/web/RecordButton.js
index 91727324a2..8abc848f1e 100644
--- a/react/features/recording/components/Recording/RecordButton.web.js
+++ b/react/features/recording/components/Recording/web/RecordButton.js
@@ -2,12 +2,12 @@
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import AbstractRecordButton, {
_mapStateToProps as _abstractMapStateToProps,
type Props as AbstractProps
-} from './AbstractRecordButton';
+} from '../AbstractRecordButton';
declare var interfaceConfig: Object;
diff --git a/react/features/recording/components/Recording/StopRecordingDialog.web.js b/react/features/recording/components/Recording/web/StopRecordingDialog.js
similarity index 87%
rename from react/features/recording/components/Recording/StopRecordingDialog.web.js
rename to react/features/recording/components/Recording/web/StopRecordingDialog.js
index f4eb44ac65..3c0a4533d1 100644
--- a/react/features/recording/components/Recording/StopRecordingDialog.web.js
+++ b/react/features/recording/components/Recording/web/StopRecordingDialog.js
@@ -2,12 +2,12 @@
import { connect } from 'react-redux';
-import { translate } from '../../../base/i18n';
+import { translate } from '../../../../base/i18n';
import AbstractStopRecordingDialog, {
type Props,
_mapStateToProps
-} from './AbstractStopRecordingDialog';
+} from '../AbstractStopRecordingDialog';
/**
* React Component for getting confirmation to stop a file recording session in
diff --git a/react/features/recording/components/Recording/web/index.js b/react/features/recording/components/Recording/web/index.js
new file mode 100644
index 0000000000..852c69138b
--- /dev/null
+++ b/react/features/recording/components/Recording/web/index.js
@@ -0,0 +1,4 @@
+// @flow
+
+export { default as RecordButton } from './RecordButton';
+export { default as StopRecordingDialog } from './StopRecordingDialog';
diff --git a/react/features/recording/components/RecordingExpandedLabel.web.js b/react/features/recording/components/RecordingExpandedLabel.web.js
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/react/features/recording/components/_.native.js b/react/features/recording/components/_.native.js
new file mode 100644
index 0000000000..a32ec60612
--- /dev/null
+++ b/react/features/recording/components/_.native.js
@@ -0,0 +1,3 @@
+// @flow
+
+export * from './native';
diff --git a/react/features/recording/components/_.web.js b/react/features/recording/components/_.web.js
new file mode 100644
index 0000000000..40d5f46528
--- /dev/null
+++ b/react/features/recording/components/_.web.js
@@ -0,0 +1,3 @@
+// @flow
+
+export * from './web';
diff --git a/react/features/recording/components/index.js b/react/features/recording/components/index.js
index 3fda26219c..8006c16995 100644
--- a/react/features/recording/components/index.js
+++ b/react/features/recording/components/index.js
@@ -1,12 +1,5 @@
-export {
- LiveStreamButton,
- StartLiveStreamDialog,
- StopLiveStreamDialog
-} from './LiveStream';
-export {
- RecordButton,
- StartRecordingDialog,
- StopRecordingDialog
-} from './Recording';
-export { default as RecordingLabel } from './RecordingLabel';
-export { default as RecordingExpandedLabel } from './RecordingExpandedLabel';
+// @flow
+
+export * from './_';
+export * from './LiveStream';
+export * from './Recording';
diff --git a/react/features/recording/components/RecordingExpandedLabel.native.js b/react/features/recording/components/native/RecordingExpandedLabel.js
similarity index 92%
rename from react/features/recording/components/RecordingExpandedLabel.native.js
rename to react/features/recording/components/native/RecordingExpandedLabel.js
index 298b44c4f2..968d767930 100644
--- a/react/features/recording/components/RecordingExpandedLabel.native.js
+++ b/react/features/recording/components/native/RecordingExpandedLabel.js
@@ -2,14 +2,14 @@
import { connect } from 'react-redux';
-import { translate } from '../../base/i18n';
-import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet';
+import { translate } from '../../../base/i18n';
+import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
import {
ExpandedLabel,
type Props as AbstractProps
-} from '../../base/label';
+} from '../../../base/label';
-import { getSessionStatusToShow } from '../functions';
+import { getSessionStatusToShow } from '../../functions';
import { LIVE_LABEL_COLOR, REC_LABEL_COLOR } from './styles';
diff --git a/react/features/recording/components/RecordingLabel.native.js b/react/features/recording/components/native/RecordingLabel.js
similarity index 87%
rename from react/features/recording/components/RecordingLabel.native.js
rename to react/features/recording/components/native/RecordingLabel.js
index fdbb7d418e..13063dc7d3 100644
--- a/react/features/recording/components/RecordingLabel.native.js
+++ b/react/features/recording/components/native/RecordingLabel.js
@@ -3,13 +3,14 @@
import React from 'react';
import { connect } from 'react-redux';
-import { translate } from '../../base/i18n';
-import { CircularLabel } from '../../base/label';
-import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet';
+import { translate } from '../../../base/i18n';
+import { CircularLabel } from '../../../base/label';
+import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
import AbstractRecordingLabel, {
_mapStateToProps
-} from './AbstractRecordingLabel';
+} from '../AbstractRecordingLabel';
+
import styles from './styles';
/**
diff --git a/react/features/recording/components/native/index.js b/react/features/recording/components/native/index.js
new file mode 100644
index 0000000000..7c3fda4667
--- /dev/null
+++ b/react/features/recording/components/native/index.js
@@ -0,0 +1,4 @@
+// @flow
+
+export { default as RecordingExpandedLabel } from './RecordingExpandedLabel';
+export { default as RecordingLabel } from './RecordingLabel';
diff --git a/react/features/recording/components/styles.js b/react/features/recording/components/native/styles.js
similarity index 87%
rename from react/features/recording/components/styles.js
rename to react/features/recording/components/native/styles.js
index e82e9c52cb..c8f4940536 100644
--- a/react/features/recording/components/styles.js
+++ b/react/features/recording/components/native/styles.js
@@ -1,6 +1,6 @@
// @flow
-import { ColorPalette, createStyleSheet } from '../../base/styles';
+import { ColorPalette, createStyleSheet } from '../../../base/styles';
export const LIVE_LABEL_COLOR = ColorPalette.blue;
export const REC_LABEL_COLOR = ColorPalette.red;
diff --git a/react/features/recording/components/RecordingLabel.web.js b/react/features/recording/components/web/RecordingLabel.js
similarity index 82%
rename from react/features/recording/components/RecordingLabel.web.js
rename to react/features/recording/components/web/RecordingLabel.js
index d66096536f..1c66fcf131 100644
--- a/react/features/recording/components/RecordingLabel.web.js
+++ b/react/features/recording/components/web/RecordingLabel.js
@@ -3,13 +3,13 @@
import React from 'react';
import { connect } from 'react-redux';
-import { CircularLabel } from '../../base/label';
-import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet';
-import { translate } from '../../base/i18n';
+import { CircularLabel } from '../../../base/label';
+import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
+import { translate } from '../../../base/i18n';
import AbstractRecordingLabel, {
_mapStateToProps
-} from './AbstractRecordingLabel';
+} from '../AbstractRecordingLabel';
/**
* Implements a React {@link Component} which displays the current state of
diff --git a/react/features/recording/components/web/index.js b/react/features/recording/components/web/index.js
new file mode 100644
index 0000000000..2004cf90ba
--- /dev/null
+++ b/react/features/recording/components/web/index.js
@@ -0,0 +1,3 @@
+// @flow
+
+export { default as RecordingLabel } from './RecordingLabel';