microsoft / react-native-macos

A framework for building native macOS apps with React.
https://microsoft.github.io/react-native-windows/
MIT License
3.56k stars 136 forks source link

ActivityIndicator causes brief flicker #412

Closed tom-un closed 4 years ago

tom-un commented 4 years ago

Reported by @Simek:

There is an issue with ActivityIndicator view Example, I assume it's related to the componentDidMount or timer there, for a brief moment just after click (after navigate), the app background became transparent and flickers (maybe it's resized to 0,0 for a ms?), most of other Examples seems to load fine.

ezgif com-video-to-gif

tido64 commented 4 years ago

This is caused by the use of CIFilters: https://github.com/microsoft/react-native-macos/blob/45d1df90e4e43f2b47259327cfb8192fb945644d/React/Views/RCTActivityIndicatorView.m#L92

Removing that one line resolves the issue. I'm currently trying to find an alternative implementation for setColor:.