Browse Source

ref: remove createStyleSheet from dialog styles

master
Bettenbuk Zoltan 6 years ago
parent
commit
b31d7b4451
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      react/features/base/dialog/components/native/styles.js

+ 9
- 5
react/features/base/dialog/components/native/styles.js View File

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

Loading…
Cancel
Save