浏览代码

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 年前
父节点
当前提交
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
                 {
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

正在加载...
取消
保存