Skip to content

Commit 70235bc

Browse files
committed
Add deprecation notice for tintColor to 0.57 docs
1 parent 8787cee commit 70235bc

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

docs/switch.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ This is a controlled component that requires an `onValueChange` callback that up
99

1010
### Props
1111

12-
* [View props...](view.md#props)
12+
- [View props...](view.md#props)
1313

14-
- [`disabled`](switch.md#disabled)
15-
- [`trackColor`](switch.md#trackcolor)
16-
- [`ios_backgroundColor`](switch.md#ios-backgroundcolor)
17-
- [`onValueChange`](switch.md#onvaluechange)
18-
- [`testID`](switch.md#testid)
19-
- [`thumbColor`](switch.md#thumbcolor)
20-
- [`tintColor`](switch.md#tintcolor)
21-
- [`value`](switch.md#value)
14+
* [`disabled`](switch.md#disabled)
15+
* [`trackColor`](switch.md#trackcolor)
16+
* [`ios_backgroundColor`](switch.md#ios-backgroundcolor)
17+
* [`onValueChange`](switch.md#onvaluechange)
18+
* [`testID`](switch.md#testid)
19+
* [`thumbColor`](switch.md#thumbcolor)
20+
* [`tintColor`](switch.md#tintcolor)
21+
* [`value`](switch.md#value)
2222

2323
---
2424

@@ -38,9 +38,9 @@ If true the user won't be able to toggle the switch. Default value is false.
3838

3939
### `trackColor`
4040

41-
Custom colors for the switch track. `onTintColor` is now deprecated.
41+
Custom colors for the switch track.
4242

43-
iOS: when the switch value is false, the track shrinks into the border. If you want to change the color of the background exposed by the shrunken track, use [`ios_backgroundColor`](switch.md#ios_backgroundColor).
43+
_iOS_: When the switch value is false, the track shrinks into the border. If you want to change the color of the background exposed by the shrunken track, use [`ios_backgroundColor`](switch.md#ios_backgroundColor).
4444

4545
| Type | Required |
4646
| ------------------------------------------------------------- | -------- |

website/versioned_docs/version-0.57/switch.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ This is a controlled component that requires an `onValueChange` callback that up
1010

1111
### Props
1212

13-
- [View props...](view.md#props)
13+
* [View props...](view.md#props)
1414

15-
* [`disabled`](switch.md#disabled)
16-
* [`trackColor`](switch.md#trackColor)
17-
* [`ios_backgroundColor`](switch.md#ios_backgroundColor)
18-
* [`onValueChange`](switch.md#onvaluechange)
19-
* [`testID`](switch.md#testid)
20-
* [`thumbColor`](switch.md#thumbColor)
21-
* [`tintColor`](switch.md#tintcolor)
22-
* [`value`](switch.md#value)
15+
- [`disabled`](switch.md#disabled)
16+
- [`trackColor`](switch.md#trackColor)
17+
- [`ios_backgroundColor`](switch.md#ios_backgroundColor)
18+
- [`onValueChange`](switch.md#onvaluechange)
19+
- [`testID`](switch.md#testid)
20+
- [`thumbColor`](switch.md#thumbColor)
21+
- [`tintColor`](switch.md#tintcolor)
22+
- [`value`](switch.md#value)
2323

2424
---
2525

@@ -39,9 +39,9 @@ If true the user won't be able to toggle the switch. Default value is false.
3939

4040
### `trackColor`
4141

42-
Custom colors for the switch track. `onTintColor` is now deprecated.
42+
Custom colors for the switch track.
4343

44-
iOS: when the switch value is false, the track shrinks into the border. If you want to change the color of the background exposed by the shrunken track, use [`ios_backgroundColor`](switch.md#ios_backgroundColor).
44+
_iOS_: When the switch value is false, the track shrinks into the border. If you want to change the color of the background exposed by the shrunken track, use [`ios_backgroundColor`](switch.md#ios_backgroundColor).
4545

4646
| Type | Required |
4747
| ------------------------------------------------------------- | -------- |
@@ -91,6 +91,8 @@ Color of the foreground switch grip. If this is set on iOS, the switch grip will
9191

9292
### `tintColor`
9393

94+
`tintColor` is deprecated, use `trackColor` instead.
95+
9496
Border color on iOS and background color on Android when the switch is turned off.
9597

9698
| Type | Required |

0 commit comments

Comments
 (0)