Bläddra i källkod

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
master
paweldomas 7 år sedan
förälder
incheckning
11c5b220a1
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4
    0
      react/features/base/participants/components/Avatar.native.js

+ 4
- 0
react/features/base/participants/components/Avatar.native.js Visa fil

302
                 {
302
                 {
303
                     ...props,
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
                     resizeMode: 'contain',
309
                     resizeMode: 'contain',
306
                     source,
310
                     source,
307
                     style: imageStyle
311
                     style: imageStyle

Laddar…
Avbryt
Spara