aksonov / aksonov/react-native-router-flux

Router>getSceenStyle does not repull when switching scenes light/dark mode

未关闭
#3,735 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
8.9k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

描述

### Version
Tell us which versions you are using:

- react-native-router-flux v4.2.0
- react v16.13.1
- react-native v0.63.4

### Expected behaviour
Background would not flash when changing scenes

### Actual behaviour

### Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
1. setup a couple of scenes, make the component have a background color of black/white, depending on dark/light mode
2. set the router's sceneStyle or getSceneStyle to display the same background
3. open the app and toggle between scenes. Notice that the background is smooth. Now, with the app open, switch between light/dark mode and toggle between scenes. Notice that the background flashes quickly from the default color.

### Reproducible Demo

Please provide a minimized reproducible demonstration of the problem you're reporting.

Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。