Skip to content

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

Closed
gksander wants to merge 2 commits intonecolas:masterfrom
gksander:appearance-api
Closed

Update Appearance API to match RN's current Appearance API#2329
gksander wants to merge 2 commits intonecolas:masterfrom
gksander:appearance-api

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