Parcourir la source

ref: remove createStyleSheet from dialog styles

j8
Bettenbuk Zoltan il y a 5 ans
Parent
révision
b31d7b4451
1 fichiers modifiés avec 9 ajouts et 5 suppressions
  1. 9
    5
      react/features/base/dialog/components/native/styles.js

+ 9
- 5
react/features/base/dialog/components/native/styles.js Voir le fichier

@@ -3,7 +3,7 @@
3 3
 import { StyleSheet } from 'react-native';
4 4
 
5 5
 import { ColorSchemeRegistry, schemeColor } from '../../../color-scheme';
6
-import { BoxModel, ColorPalette, createStyleSheet } from '../../../styles';
6
+import { BoxModel, ColorPalette } from '../../../styles';
7 7
 
8 8
 import { PREFERRED_DIALOG_SIZE } from '../../constants';
9 9
 
@@ -50,7 +50,7 @@ export const bottomSheetStyles = {
50 50
     }
51 51
 };
52 52
 
53
-export const brandedDialog = createStyleSheet({
53
+export const brandedDialog = {
54 54
 
55 55
     /**
56 56
      * The style of bold {@code Text} rendered by the {@code Dialog}s of the
@@ -95,8 +95,12 @@ export const brandedDialog = createStyleSheet({
95 95
         flexDirection: 'row',
96 96
         justifyContent: 'center',
97 97
         padding: 30
98
+    },
99
+
100
+    overlayTouchable: {
101
+        ...StyleSheet.absoluteFillObject
98 102
     }
99
-});
103
+};
100 104
 
101 105
 /**
102 106
  * Reusable (colored) style for text in any branded dialogs.
@@ -107,7 +111,7 @@ const brandedDialogText = {
107 111
     textAlign: 'center'
108 112
 };
109 113
 
110
-export const inputDialog = createStyleSheet({
114
+export const inputDialog = {
111 115
     bottomField: {
112 116
         marginBottom: 0
113 117
     },
@@ -122,7 +126,7 @@ export const inputDialog = createStyleSheet({
122 126
         fontStyle: 'italic',
123 127
         margin: BoxModel.margin
124 128
     }
125
-});
129
+};
126 130
 
127 131
 /**
128 132
  * Default styles for the items of a {@code BottomSheet}-based menu.

Chargement…
Annuler
Enregistrer