소스 검색

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…
취소
저장