瀏覽代碼

Remove obsolate PlatformElements.native.js

master
zbettenbuk 7 年之前
父節點
當前提交
357f173e85

+ 0
- 49
react/features/base/styles/components/styles/PlatformElements.native.js 查看文件

1
-import { ColorPalette } from './ColorPalette';
2
-import { BoxModel } from './BoxModel';
3
-
4
-import {
5
-    createStyleSheet
6
-} from '../../functions';
7
-
8
-export const PlatformElements = createStyleSheet({
9
-
10
-    /**
11
-     * Platform specific header button (e.g. back, menu...etc).
12
-     */
13
-    headerButton: {
14
-        alignSelf: 'center',
15
-        color: ColorPalette.white,
16
-        fontSize: 26,
17
-        paddingRight: 22
18
-    },
19
-
20
-    /**
21
-     * Generic style for a label placed in the header.
22
-     */
23
-    headerText: {
24
-        color: ColorPalette.white,
25
-        fontSize: 20
26
-    },
27
-
28
-    /**
29
-     * An empty padded view to place components.
30
-     */
31
-    paddedView: {
32
-        padding: BoxModel.padding
33
-    },
34
-
35
-    /**
36
-     * The topmost level element of a page.
37
-     */
38
-    page: {
39
-        alignItems: 'stretch',
40
-        bottom: 0,
41
-        flex: 1,
42
-        flexDirection: 'column',
43
-        left: 0,
44
-        overflow: 'hidden',
45
-        position: 'absolute',
46
-        right: 0,
47
-        top: 0
48
-    }
49
-});

+ 0
- 1
react/features/base/styles/components/styles/index.js 查看文件

1
 export * from './BoxModel';
1
 export * from './BoxModel';
2
 export * from './ColorPalette';
2
 export * from './ColorPalette';
3
-export * from './PlatformElements';

+ 2
- 2
react/features/welcome/components/WelcomePage.native.js 查看文件

16
 import { MEDIA_TYPE } from '../../base/media';
16
 import { MEDIA_TYPE } from '../../base/media';
17
 import { updateProfile } from '../../base/profile';
17
 import { updateProfile } from '../../base/profile';
18
 import { LoadingIndicator, Header, Text } from '../../base/react';
18
 import { LoadingIndicator, Header, Text } from '../../base/react';
19
-import { ColorPalette, PlatformElements } from '../../base/styles';
19
+import { ColorPalette } from '../../base/styles';
20
 import {
20
 import {
21
     createDesiredLocalTracks,
21
     createDesiredLocalTracks,
22
     destroyLocalTracks
22
     destroyLocalTracks
114
                         </View>
114
                         </View>
115
                     </Header>
115
                     </Header>
116
                     <SafeAreaView style = { styles.roomContainer } >
116
                     <SafeAreaView style = { styles.roomContainer } >
117
-                        <View style = { PlatformElements.paddedView } >
117
+                        <View style = { styles.joinControls } >
118
                             <TextInput
118
                             <TextInput
119
                                 accessibilityLabel = { 'Input room name.' }
119
                                 accessibilityLabel = { 'Input room name.' }
120
                                 autoCapitalize = 'none'
120
                                 autoCapitalize = 'none'

+ 7
- 0
react/features/welcome/components/styles.js 查看文件

131
         paddingTop: 10
131
         paddingTop: 10
132
     },
132
     },
133
 
133
 
134
+    /**
135
+     * A view that contains the field and hint box.
136
+     */
137
+    joinControls: {
138
+        padding: BoxModel.padding
139
+    },
140
+
134
     /**
141
     /**
135
      * The style of the top-level container/{@code View} of
142
      * The style of the top-level container/{@code View} of
136
      * {@code LocalVideoTrackUnderlay}.
143
      * {@code LocalVideoTrackUnderlay}.

Loading…
取消
儲存