Skip to content

Commit 8686c28

Browse files
committed
Add deprecations on Modal props
1 parent dd745d1 commit 8686c28

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

packages/react-native/Libraries/Modal/Modal.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,17 @@ export interface ModalPropsAndroid {
110110

111111
/**
112112
* Determines whether your modal should go under the system statusbar.
113+
*
114+
* @deprecated Has no effect on its own on Android 15+ (API 35+) due to
115+
* edge-to-edge enforcement.
113116
*/
114117
statusBarTranslucent?: boolean | undefined;
115118

116119
/**
117120
* Determines whether your modal should go under the system navigationbar.
121+
*
122+
* @deprecated Has no effect on its own on Android 15+ (API 35+) due to
123+
* edge-to-edge enforcement.
118124
*/
119125
navigationBarTranslucent?: boolean | undefined;
120126
}

packages/react-native/Libraries/Modal/Modal.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ export type ModalPropsAndroid = {
190190
* Whether the modal should go under the system status bar. Must be set
191191
* together with `navigationBarTranslucent` to draw the modal edge-to-edge.
192192
*
193+
* @deprecated Has no effect on its own on API level 35+ (Android 15+) due to
194+
* edge-to-edge enforcement.
195+
*
193196
* @default `false`
194197
*
195198
* @platform android
@@ -200,6 +203,9 @@ export type ModalPropsAndroid = {
200203
* Whether the modal should go under the system navigation bar. Must be set
201204
* together with `statusBarTranslucent` to draw the modal edge-to-edge.
202205
*
206+
* @deprecated Has no effect on its own on API level 35+ (Android 15+) due to
207+
* edge-to-edge enforcement.
208+
*
203209
* @default `false`
204210
*
205211
* @platform android

0 commit comments

Comments
 (0)