Closed batuhanoztrk closed 3 weeks ago
show()
MenuViewManagerBase.kt
MenuComponentRef
UIMenuView.android.tsx
const menuRef = useRef<MenuComponentRef>(null); // Show menu programmatically menuRef.current?.show(); // In JSX <MenuView ref={menuRef} title="Menu Title" actions={...} />
Add Imperative Menu Control for Android
Changes
show()
method to programmatically display menus on Androidshow()
method to React Native componentsImplementation Details
MenuViewManagerBase.kt
MenuComponentRef
type for TypeScript supportUIMenuView.android.tsx
Example Usage
Testing
Notes