diff --git a/README.md b/README.md index 63d2dae8..2093d25f 100644 --- a/README.md +++ b/README.md @@ -131,9 +131,11 @@ It's also possible to obtain the `action` is a more React-ish, declarative fashi ### Props -#### `ref` (Android only) +#### `ref` -Ref to the menu component. +Ref to the menu component. Call `ref.current?.show()` to open the menu from code. + +`show()` works on Android only. On iOS it does nothing (a warning is logged in development), because iOS has no public API to present a menu from code. | Type | Required | |------|----------| diff --git a/example/src/App.tsx b/example/src/App.tsx index bd180b1d..bd4d5d99 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -51,10 +51,12 @@ export const App = () => { -