Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add cursorColor support to TextInput#11502

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jonthysell merged 2 commits intomicrosoft:mainfromdlitsman:cursor-color
Apr 21, 2023

Conversation

@dlitsman
Copy link
Contributor

@dlitsmandlitsman commentedApr 17, 2023
edited
Loading

Description

I've added the support for thecursorColor property to the macOS repo already. This PR will help to keep parity between platformsmicrosoft/react-native-macos#1787

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

ThecusrorColor property is already available on macOS aftermicrosoft/react-native-macos#1787 and documented in the docshttps://reactnative.dev/docs/textinput#cursorcolor-android. However, there is currently no way to update the cursor/caret color on Windows.

What

  • I've extendedHideCaretIfNeeded logic to support the custom color of a caret. This function is already, in a sense, changing the color of a caret; however, it always sets it to be transparent. Now, we allow custom colors as well
  • Updated demo textinput page to have test cases for it

Screenshots

React.Native.Playground.Win32.2023-04-16.19-10-09.mp4
Microsoft Reviewers:Open in CodeFlow

AlmTalal reacted with heart emoji
@dlitsmandlitsman requested review froma team ascode ownersApril 17, 2023 09:39
@jonthyselljonthysell mentioned this pull requestApr 20, 2023
233 tasks
@jonthysell
Copy link
Contributor

@acoates-ms, if they need it for paper, I assume we'll need it for Fabric too?

@acoates-ms
Copy link
Contributor

Yeah, this PR at least adds the property to the props object so its ready to implement. We should add it to the list of props to implement on fabric.

@jonthyselljonthysell merged commitf9c92c6 intomicrosoft:mainApr 21, 2023
@microsoft-github-policy-servicemicrosoft-github-policy-servicebot added the Invalid Triagehttps://github.com/microsoft/react-native-windows/wiki/Triage-Process (label applied by bot) labelApr 21, 2023
@jonthyselljonthysell removed the Invalid Triagehttps://github.com/microsoft/react-native-windows/wiki/Triage-Process (label applied by bot) labelApr 21, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jonthyselljonthyselljonthysell approved these changes

Assignees

No one assigned

Labels

None yet

Projects

Status: No status

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@dlitsman@jonthysell@acoates-ms

[8]ページ先頭

©2009-2025 Movatter.jp