Skip to content

Commit 6538dbb

Browse files
committed
UIManager showPopupMenu and dismissPopupMenu are deprecated
1 parent fdceaf7 commit 6538dbb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/apis/UIManager.res

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ external setLayoutAnimationEnabledExperimental: option<bool => unit> =
1414
"setLayoutAnimationEnabledExperimental"
1515

1616
// Android-only
17-
@module("react-native") @scope("UIManager")
17+
@deprecated(
18+
"UIManager.showPopupMenu is deprecated and will be removed in 0.75, migrate to @react-native/popup-menu-android"
19+
)
20+
@module("react-native")
21+
@scope("UIManager")
1822
external showPopupMenu: (
1923
int,
2024
array<string>,
@@ -23,7 +27,11 @@ external showPopupMenu: (
2327
) => unit = "showPopupMenu"
2428

2529
// Android-only
26-
@module("react-native") @scope("UIManager")
30+
@deprecated(
31+
"UIManager.dismissPopupMenu is deprecated and will be removed in 0.75, migrate to @react-native/popup-menu-android"
32+
)
33+
@module("react-native")
34+
@scope("UIManager")
2735
external dismissPopupMenu: unit => unit = "dismissPopupMenu"
2836

2937
@module("react-native") @scope("UIManager")

0 commit comments

Comments
 (0)