瀏覽代碼

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 6 年之前
父節點
當前提交
11c5b220a1
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      react/features/base/participants/components/Avatar.native.js

+ 4
- 0
react/features/base/participants/components/Avatar.native.js 查看文件

@@ -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

Loading…
取消
儲存