Skip to content

Commit

Permalink
Update Switch.d.ts (facebook#38636)
Browse files Browse the repository at this point in the history
Summary:
updated type for activeThumbColor prop for Switch component

To help community users with all possible properties

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
--> GENERAL CHANGED - added new prop in type of switch component

Pull Request resolved: facebook#38636

Reviewed By: cortinico

Differential Revision: D47800523

Pulled By: lunaleaps

fbshipit-source-id: 25b22a97a3c02ad01c8100fdd1f3e808f296c14c
  • Loading branch information
VickyA371 authored and facebook-github-bot committed Aug 3, 2023
1 parent 379f149 commit f493adc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-native/Libraries/Components/Switch/Switch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ export interface SwitchProps extends SwitchPropsIOS {
*/
thumbColor?: ColorValue | undefined;

/**
* Color of the active foreground switch grip.
*/
activeThumbColor?: ColorValue | undefined;

/**
* Custom colors for the switch track
*
Expand Down

0 comments on commit f493adc

Please sign in to comment.