Skip to content

Add support for iOS dark mode - #463

Merged
lfkwtz merged 3 commits into
lawnstarter:masterfrom
sarcadass:feature/add-support-ios-dark-theme
Aug 28, 2023
Merged

lfkwtz merged 3 commits into
lawnstarter:masterfrom
sarcadass:feature/add-support-ios-dark-theme

Conversation

@sarcadass

@sarcadass sarcadass commented Oct 21, 2021 •

Copy link
Copy Markdown
Contributor

I added a new prop darkTheme to have a dark theme on the picker (only on iOS). I used the same color as the native iOS picker in dark system theme when you open a <select> on the web. I wrote a test with the feature.

Preview

Picture

dark-theme-ios

Video

dark-theme-ios-video.mp4

Test the feature

  1. Download the codeSandbox repo. I could not make a snack because I use the Appearance API of react-native in the example. To use Appearance, you need to edit the App.json if you use expo, a thing you can't do in a snack. I provided the App.json file in the codeSandbox repo.
  2. npm i && expo start
  3. Open the App with expo and open the picker, change your system theme on iOS then switch back to the App and open the picker again.

Related issue

#245

@cvburgess

Copy link
Copy Markdown

Thank you! This would be such a big win for our team.

@cvburgess

Copy link
Copy Markdown

@lfkwtz is there anything i can do to help get this merged in?

@sarcadass

Copy link
Copy Markdown
Contributor Author

I just made a fix to apply the proper custom styles for the light & dark themes.

@luizaugustoventura

luizaugustoventura commented Nov 27, 2021 •

Copy link
Copy Markdown

@lfkwtz is there anything i can do to help get this merged in?

You guys have any update on this PR? This would be a really important one for me and the project I'm working on 😊️

@leofolive

Copy link
Copy Markdown

@lawnstarter

@felri

felri commented Dec 10, 2021

Copy link
Copy Markdown

Any updates?

@trvnvy

trvnvy commented Jan 5, 2022

Copy link
Copy Markdown

@lawnstarter

@leofolive

Copy link
Copy Markdown

Any updates?
Has this repository been abandoned?

@tomassvatek

Copy link
Copy Markdown

Why the PR has not been merged?

@octagonalsquare octagonalsquare left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! And its a very much needed feature.

@stevenvz

stevenvz commented Mar 2, 2022

Copy link
Copy Markdown

@lawnstarter this PR has multiple approvals & would be very helpful, please merge or provide an update if you can. Thanks! :)

@stevenvz

stevenvz commented Mar 2, 2022

Copy link
Copy Markdown

Or is @LawnStarterTeam the correct @? ^

@sophie-li

Copy link
Copy Markdown
  • 1

@sophie-li

Copy link
Copy Markdown

Any updates on this, please? @LawnStarterTeam

1 similar comment
@leofolive

Copy link
Copy Markdown

Any updates on this, please? @LawnStarterTeam

@leofolive

leofolive commented Jul 28, 2022 •

Copy link
Copy Markdown

Any updates? I think it's time to start a fork of this project and fix all these problems,
working on it...

@MaciejMajchrzak MaciejMajchrzak left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@awibox

awibox commented Dec 15, 2022

Copy link
Copy Markdown

use npm install react-native-picker-select-updated to get dark mode

@lfkwtz
lfkwtz merged commit 5c38b33 into lawnstarter:master Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.