Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Appearance API to match RN's current Appearance API #2329

Closed
wants to merge 2 commits into from

Conversation

gksander
Copy link
Contributor

@gksander gksander commented Jul 6, 2022

React Native has updated it's Appearance API to remove the Appearance.removeChangeListener static method in favor of Appearance.addChangeListener returning a remove method. See here

Right now, RNW and RN's implementations of Appearance are different and therefore use of Appearance API in modern RN projects will work on mobile, but will break with RNW. This PR addresses that issue by brining RNW's Appearance API up to spec with RN's Appearance API.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 6, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0a28cf1:

Sandbox Source
react-native-web-examples Configuration

@necolas necolas closed this in a65dcc5 Jul 6, 2022
necolas pushed a commit that referenced this pull request Jul 6, 2022
Match react-native >=0.65

Fix #2329
rnike pushed a commit to VeryBuy/react-native-web that referenced this pull request Sep 13, 2022
Match react-native >=0.65

Fix necolas#2329
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.

1 participant