Skip to content

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

Remove obsolate PlatformElements.native.js

zbettenbuk357f173e8522
diff --git a/react/features/base/styles/components/styles/PlatformElements.native.js b/react/features/base/styles/components/styles/PlatformElements.native.js
deleted file mode 100644
index a8f36dd0eb..0000000000
--- a/react/features/base/styles/components/styles/PlatformElements.native.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import { ColorPalette } from './ColorPalette';
-import { BoxModel } from './BoxModel';
-
-import {
- createStyleSheet
-} from '../../functions';
-
-export const PlatformElements = createStyleSheet({
-
- /**
- * Platform specific header button (e.g. back, menu...etc).
- */
- headerButton: {
- alignSelf: 'center',
- color: ColorPalette.white,
- fontSize: 26,
- paddingRight: 22
- },
-
- /**
- * Generic style for a label placed in the header.
- */
- headerText: {
- color: ColorPalette.white,
- fontSize: 20
- },
-
- /**
- * An empty padded view to place components.
- */
- paddedView: {
- padding: BoxModel.padding
- },
-
- /**
- * The topmost level element of a page.
- */
- page: {
- alignItems: 'stretch',
- bottom: 0,
- flex: 1,
- flexDirection: 'column',
- left: 0,
- overflow: 'hidden',
- position: 'absolute',
- right: 0,
- top: 0
- }
-});
diff --git a/react/features/base/styles/components/styles/index.js b/react/features/base/styles/components/styles/index.js
index f6673b7c1d..5b08709f4a 100644
--- a/react/features/base/styles/components/styles/index.js
+++ b/react/features/base/styles/components/styles/index.js
@@ -1,3 +1,2 @@
export * from './BoxModel';
export * from './ColorPalette';
-export * from './PlatformElements';
diff --git a/react/features/welcome/components/WelcomePage.native.js b/react/features/welcome/components/WelcomePage.native.js
index 933baa65fd..428f39d558 100644
--- a/react/features/welcome/components/WelcomePage.native.js
+++ b/react/features/welcome/components/WelcomePage.native.js
@@ -16,7 +16,7 @@ import { Icon } from '../../base/font-icons';
import { MEDIA_TYPE } from '../../base/media';
import { updateProfile } from '../../base/profile';
import { LoadingIndicator, Header, Text } from '../../base/react';
-import { ColorPalette, PlatformElements } from '../../base/styles';
+import { ColorPalette } from '../../base/styles';
import {
createDesiredLocalTracks,
destroyLocalTracks
@@ -114,7 +114,7 @@ class WelcomePage extends AbstractWelcomePage {
</View>
</Header>
<SafeAreaView style = { styles.roomContainer } >
- <View style = { PlatformElements.paddedView } >
+ <View style = { styles.joinControls } >
<TextInput
accessibilityLabel = { 'Input room name.' }
autoCapitalize = 'none'
diff --git a/react/features/welcome/components/styles.js b/react/features/welcome/components/styles.js
index a2febc6e01..35e9c46517 100644
--- a/react/features/welcome/components/styles.js
+++ b/react/features/welcome/components/styles.js
@@ -131,6 +131,13 @@ export default createStyleSheet({
paddingTop: 10
},
+ /**
+ * A view that contains the field and hint box.
+ */
+ joinControls: {
+ padding: BoxModel.padding
+ },
+
/**
* The style of the top-level container/{@code View} of
* {@code LocalVideoTrackUnderlay}.