Button styles wrongly persist after toggling from light to dark, or dark to light
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react-native
- 領域
- mobile
調査の方向性
Reproduce the issue by defining button styles under the RneTheme's theme.components, then toggle between light and dark modes. Compare the button background and text colors with the expected theme values in each mode; done means styles update in both directions without retaining the initially loaded values.
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
Explain what you did
Theming buttons with the theme provider and toggling the dark/light mode.
Expected behavior
The colors should be changed to those defined under theme.components
Describe the bug
Same bug as #3655, but for buttons
Steps To Reproduce
Add a button with styles defined in the RneTheme, then toggle dark/light mode and note that the styles do not update
Screenshots
Toggling from light mode to dark mode, or reverse, persists the originally loaded styles for background and text colors
Correct button light mode

Incorrect button dark mode (after loading app in light mode and switching to dark)

Correct button dark mode

Incorrect button light mode (after loading app in dark mode and switching to light)

Your Environment
Your Environment
`npx @rneui/envinfo`
```
System:
OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
CPU: (4) x64 AMD Ryzen 7 5800X 8-Core Processor
Memory: 2.08 GB / 19.51 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.0/bin/yarn
npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
Watchman: 4.9.0 - /usr/bin/watchman
Managers:
Apt: 2.4.7 - /usr/bin/apt
pip3: 22.2.2 - ~/.local/bin/pip3
Utilities:
CMake: 3.22.1 - /usr/bin/cmake
Make: 4.3 - /usr/bin/make
GCC: 11.2.0 - /usr/bin/gcc
Git: 2.38.1 - /usr/bin/git
SDKs:
Android SDK:
API Levels: 31, 32, 33
Build Tools: 30.0.3, 31.0.0, 33.0.0
System Images: android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64
IDEs:
Nano: 6.2 - /usr/bin/nano
VSCode: 1.68.1 - /usr/bin/code
Languages:
Bash: 5.1.16 - /usr/bin/bash
Perl: 5.34.0 - /usr/bin/perl
Python3: 3.10.6 - /usr/bin/python3
Databases:
SQLite: 3.32.2 - /home/me/Android/Sdk/platform-tools/sqlite3
Browsers:
Chrome: 106.0.5249.61
Firefox: 106.0
Monorepos:
Yarn Workspaces: 1.22.19
Lerna: 5.6.2
```
- 主要言語
- MDX
- スター
- 25.9k
- フォーク
- 4.7k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react-native-elements/react-native-elements のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
react-native-elements/react-native-elements#4035 · コメント 1 件 ·
-
Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
react-native-elements/react-native-elements#3963 · コメント 2 件 · リアクション 2 件 ·
-
component: Button
react-native-elements/react-native-elements#4032 · 担当者 1 名 ·
-
TS Bug - @rneui/base@5.0.0 — Undeclared type dependency causes IconProps to lose color/name/size オープンcomponent: Icon
react-native-elements/react-native-elements#4027 · コメント 2 件 · リアクション 4 件 · 担当者 1 名 ·
-
📞 Needs Response from Author
react-native-elements/react-native-elements#4022 · コメント 9 件 · リアクション 2 件 · 担当者 1 名 ·
react-native-elements/react-native-elements の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
avniproject/avni-client#2135 ·
-
react-doctor severity:warning tech-debt
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
digidem/comapeo-cloud-app#403 ·
-
Icon Requests オープンsupported
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
LawnchairLauncher/lawnicons#4100 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
CypherBoxLLC/Cypher-Box#284 ·
-
cr:missing-repro cr:platform:android platform:android repro-provided
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
software-mansion/react-native-screens#4699 · コメント 1 件 ·