Skip to content

Commit 03ed6e3

Browse files
authored
Add deprecation note for Statusbar backgroundcolor prop (facebook#4289)
* add deprecation note on StatusBar.backgroundColor * make deprecation a warning * close warning * add deprecation warning to setBackgrouColor()
1 parent c878206 commit 03ed6e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/statusbar.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ If the transition between status bar property changes should be animated. Suppor
265265

266266
The background color of the status bar.
267267

268+
:::warning
269+
Due to edge-to-edge enforcement introduced in Android 15, setting background color of the status bar is deprecated in API level 35.
270+
:::
271+
268272
| Type | Required | Default |
269273
| --------------- | -------- | ---------------------------------------------------------------------- |
270274
| [color](colors) | No | default system StatusBar background color, or `'black'` if not defined |
@@ -383,6 +387,10 @@ static setBackgroundColor(color: ColorValue, animated?: boolean);
383387

384388
Set the background color for the status bar.
385389

390+
:::warning
391+
Due to edge-to-edge enforcement introduced in Android 15, setting background color of the status bar is deprecated in API level 35.
392+
:::
393+
386394
**Parameters:**
387395

388396
| Name | Type | Description |

0 commit comments

Comments
 (0)