|
@@ -1,7 +1,3 @@
|
1
|
|
-import Platform from '../react/Platform';
|
2
|
|
-
|
3
|
|
-import { ColorPalette } from './components/styles/ColorPalette';
|
4
|
|
-
|
5
|
1
|
declare type StyleSheet = {
|
6
|
2
|
[key: string]: string | number | { [key: string]: string | number; };
|
7
|
3
|
};
|
|
@@ -121,28 +117,6 @@ export function createStyleSheet(
|
121
|
117
|
return combinedStyles;
|
122
|
118
|
}
|
123
|
119
|
|
124
|
|
-/**
|
125
|
|
- * Works around a bug in react-native or react-native-webrtc on Android which
|
126
|
|
- * causes Views overlaying RTCView to be clipped. Even though we (may) display
|
127
|
|
- * multiple RTCViews, it is enough to apply the fix only to a View with a
|
128
|
|
- * bounding rectangle containing all RTCviews and their overlaying Views.
|
129
|
|
- *
|
130
|
|
- * @param {StyleSheet} styles - An object which represents a stylesheet.
|
131
|
|
- * @public
|
132
|
|
- * @returns {StyleSheet}
|
133
|
|
- */
|
134
|
|
-export function fixAndroidViewClipping<T extends StyleSheet>(styles: T): T {
|
135
|
|
- if (Platform.OS === 'android') {
|
136
|
|
- // @ts-ignore
|
137
|
|
- styles.borderColor = ColorPalette.appBackground;
|
138
|
|
-
|
139
|
|
- // @ts-ignore
|
140
|
|
- styles.borderWidth = 1;
|
141
|
|
- }
|
142
|
|
-
|
143
|
|
- return styles;
|
144
|
|
-}
|
145
|
|
-
|
146
|
120
|
/**
|
147
|
121
|
* Returns an rgba format of the provided color if it's in hex or rgb format.
|
148
|
122
|
*
|