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

Fix cursorColor on Android Q+ #26433

Closed
wants to merge 7 commits into from

Conversation

janicduplessis
Copy link
Contributor

Summary

cursorColor is broken since android P restricted access to private APIs. Luckily Android added a new API in Android Q to set the cursor drawable programmatically. Sadly it will stay broken for Android P and O but at least it will work going forward. I still kept the reflection implementation for now, we might want to drop it at some point.

Before landing this we need to bump the compile sdk version to SDK 29. This should not be done in this PR.

Changelog

[Android] [Fixed] - Fix cursorColor on Android Q+

Test Plan

Added an example in RNTester and checked that it works on an Android Q simulator.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. labels Sep 14, 2019
@react-native-bot react-native-bot added Platform: Android Android applications. Bug labels Sep 14, 2019
@janicduplessis janicduplessis changed the title [DONT MERGE] Fix cursorColor on Android Q+ Fix cursorColor on Android Q+ Jan 31, 2020
@janicduplessis
Copy link
Contributor Author

Now that we compile with sdk 29 this should be mergeable.

@janicduplessis
Copy link
Contributor Author

Buck wasn't compiling using sdk 29 like gradle. Updated 7e4a71b and it seems to build fine on CI now. We probably want to land this in a separate commit and idk if this will affect fb.

@janicduplessis
Copy link
Contributor Author

cc @mdvacca @dulmandakh

@dulmandakh
Copy link
Contributor

dulmandakh commented Feb 1, 2020 via email

@mdvacca
Copy link
Contributor

mdvacca commented Feb 1, 2020

LGTM, importing to review and test internally

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@mdvacca has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@janicduplessis
Copy link
Contributor Author

ping @mdvacca

@janicduplessis
Copy link
Contributor Author

e7a14b8

facebook-github-bot pushed a commit that referenced this pull request Mar 29, 2023
Summary:
This sync includes the following changes:
- **[77ba1618a](facebook/react@77ba1618a )**: Bugfix: Remove extra render pass when reverting to client render ([#26445](facebook/react#26445)) //<Andrew Clark>//
- **[520f7f3ed](facebook/react@520f7f3ed )**: Refactor ReactDOMComponent to use flatter property operations ([#26433](facebook/react#26433)) //<Sebastian Markbåge>//
- **[0131d0cff](facebook/react@0131d0cff )**: Check if suspensey instance resolves in immediate task ([#26427](facebook/react#26427)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions 3554c88...77ba161

jest_e2e[run_all_tests]

Reviewed By: poteto

Differential Revision: D44476026

fbshipit-source-id: c6935d760a068672b714722dee1fd24839c08c4b
jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
Summary:
This sync includes the following changes:
- **[77ba1618a](facebook/react@77ba1618a )**: Bugfix: Remove extra render pass when reverting to client render ([facebook#26445](facebook/react#26445)) //<Andrew Clark>//
- **[520f7f3ed](facebook/react@520f7f3ed )**: Refactor ReactDOMComponent to use flatter property operations ([facebook#26433](facebook/react#26433)) //<Sebastian Markbåge>//
- **[0131d0cff](facebook/react@0131d0cff )**: Check if suspensey instance resolves in immediate task ([facebook#26427](facebook/react#26427)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions 3554c88...77ba161

jest_e2e[run_all_tests]

Reviewed By: poteto

Differential Revision: D44476026

fbshipit-source-id: c6935d760a068672b714722dee1fd24839c08c4b
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
This sync includes the following changes:
- **[77ba1618a](facebook/react@77ba1618a )**: Bugfix: Remove extra render pass when reverting to client render ([facebook#26445](facebook/react#26445)) //<Andrew Clark>//
- **[520f7f3ed](facebook/react@520f7f3ed )**: Refactor ReactDOMComponent to use flatter property operations ([facebook#26433](facebook/react#26433)) //<Sebastian Markbåge>//
- **[0131d0cff](facebook/react@0131d0cff )**: Check if suspensey instance resolves in immediate task ([facebook#26427](facebook/react#26427)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions 3554c88...77ba161

jest_e2e[run_all_tests]

Reviewed By: poteto

Differential Revision: D44476026

fbshipit-source-id: c6935d760a068672b714722dee1fd24839c08c4b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. Platform: Android Android applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants