Procházet zdrojové kódy

fix(participants/Avatar.native): disable fade animation

The Image adds a fade effect without asking, so lets explicitly disable
it. More info here:
https://github.com/facebook/react-native/issues/10194
j8
paweldomas před 6 roky
rodič
revize
11c5b220a1

+ 4
- 0
react/features/base/participants/components/Avatar.native.js Zobrazit soubor

@@ -302,6 +302,10 @@ export default class Avatar extends Component<Props, State> {
302 302
                 {
303 303
                     ...props,
304 304
 
305
+                    // The Image adds a fade effect without asking, so lets
306
+                    // explicitly disable it. More info here:
307
+                    // https://github.com/facebook/react-native/issues/10194
308
+                    fadeDuration: 0,
305 309
                     resizeMode: 'contain',
306 310
                     source,
307 311
                     style: imageStyle

Načítá se…
Zrušit
Uložit