* revert: back to original
* feat: close menu support
* feat: close menu support
* feat: close menu support
* feat: close menu support
* feat: close menu support
* chore: removed package lock file
* feat(events): add menu close detection
Add onMenuClose event that fires when menu is dismissed.
- Implement for both iOS and Android platforms
- Add event at start of dismissal for better responsiveness
- Support both old and new React Native architectures
- Add tests and update documentation
The event fires when:
- User taps outside the menu
- User selects a menu item
* feat(events): add onOpenMenu event and rename onMenuClose
* refactor(menu): simplify menu event handlers by removing native event parameters
* fix(types): update onCloseMenu and onOpenMenu event handlers to use undefined event parameter
* fix(types): update onCloseMenu and onOpenMenu event handlers to accept string event parameters
* refactor(menu): rename onMenuOpen to onOpenMenu across iOS implementations
* feat(menu): implement onOpenMenu event and update event handling in iOS and Android
* refactor(menu): streamline event handling for onCloseMenu and onOpenMenu
---------
Co-authored-by: mohammed <malkailany@hotmail.com>
* fix: Add versioning support for MenuViewManager
- Refactored com.reactnativemenu.MenuViewManager to be a base class (MenuViewManagerBase).
- Added version-specific implementations of MenuViewManager:
- src/reactNativeVersionPatch/75/MenuViewManager.kt for React Native versions < 76
- src/reactNativeVersionPatch/latest/MenuViewManager.kt for React Native versions >= 76
- Updated build.gradle to dynamically select version-specific source directories based on React Native minor version.
* docs: Update CONTRIBUTING.md with new folder structure and versioning guidelines
- Updated CONTRIBUTING.md to include instructions on the new folder structure for version-specific implementations under `reactNativeVersionPatch`.
- Added guidelines for implementing changes based on React Native versions, including steps for adding new files in both `75` and `latest` folders and updating `build.gradle` for dynamic inclusion.
fix: Refactor MenuViewManager as abstract base class with version-specific implementations
* Fix: Restored the call to the setter view.setHitSlopRect instead of reassigning the variable view.hitSlopRect to avoid the error "Val cannot be reassigned."
---------
Co-authored-by: Dmitry Belov <dmitry.belov@studocu.com>
* Migrating module to fabric
* Adding instructions on Readme.md
* making sure the library is backwards compatible
* changes podspec for old arch
* separating new from old architecture files
- android action attributes (destructive, hidden, disabled)
- android action title color
- android action image and image color
- ios image color
- readme update with new props available