Button styles wrongly persist after toggling from light to dark, or dark to light

オープン
#3,665 コメント 14 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

priority: high Theming
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

image

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

image


Correct button dark mode

image

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

image

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 はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

react-native-elements/react-native-elements のほかの issue

react-native-elements/react-native-elements の issue をすべて見る

似ている issue

Mobile Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。