Commit Graph

33 Commits

Author SHA1 Message Date
Batuhan Öztürk
e8103211ab
fix: add Fabric Commands Support for Android MenuView Component (#1152)
* feat: add Fabric support for MenuView commands

* refactor(UIMenuView): make Commands constant local
2025-09-12 17:38:32 +02:00
Vojtech Novak
fef5d3401b
feat: bump example to 0.81, fix compilation errors (#1156) 2025-09-10 08:59:19 +09:00
Jakov Glavina
5e16ef7d06
fix android build issue on 0.78 (#1048) 2025-03-12 09:26:35 +09:00
lluiscab
09a142f5bd
feat: updated minSdkVersion to sdk version 24, inline with react-native's 0.76.0 minSdkVersion (#1016) 2025-02-27 12:03:51 +09:00
Daniel Dimitrov
cab10d3692
fix(android): package was failing to compile on RN 0.77 (#1022) 2025-01-24 08:19:19 +09:00
Jakov Glavina
67f75a3753
fix compilation on RN 0.77 (#1017) 2025-01-22 11:35:58 +09:00
Mohammed Alkailany
d7dcacd53e
feat: Add onOpenMenu and onCloseMenu event handlers (#998)
* 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>
2024-12-27 16:02:09 +09:00
Batuhan Öztürk
205c4bb9f2
feat(android): add show method to MenuView component (#954)
* feat(android): add show method to MenuView component

* refactor(types): re-export MenuComponentRef type

* docs: update README with ref usage example
2024-10-31 11:49:26 +09:00
Dmitry Belov
63ae0d9d36
Add Version-Specific Kotlin Implementations for Android to Support React Native 0.76+ and lower (#948)
* 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>
2024-10-30 09:10:19 +09:00
Batuhan Öztürk
baf7fbe1e1
fix(android): hit slop functionality (#942) 2024-10-28 12:15:45 +09:00
Dmitry Belov
28552a9feb
chore: Removed custom logic for extracting RGB and alpha components, as the new setBorderColor method handles it internally. (#941)
Co-authored-by: Dmitry Belov <dmitry.belov@studocu.com>
2024-10-25 10:48:11 +09:00
Marcos Rodriguez Vélez
a149bbfbbb
add isCheckable from state prop (#872) 2024-09-07 17:42:56 +09:00
lluiscab
2be0e42365
eat: updated minSdkVersion to sdk version 23, inline with react-native's 0.74.0 minSdkVersion (#812) 2024-05-24 08:51:37 +09:00
Nicola Corti
3f7d308750
[Android] Move to EventDispatcher instead of RCTEventEmitter (#749) 2024-04-21 17:11:21 +09:00
Jakov Glavina
6c20ee44cc
[android] fix: use hitSlop setter instead of property access for RN 0.74 compatibility (#746) 2024-04-12 08:55:31 +09:00
Ioannis Kokkinidis
05cd3c40f1
Migrating module to fabric (#682)
* 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
2024-03-12 07:42:51 +09:00
Jakov Glavina
28c1cb3197
RN 0.73 compatibility for Android (#542) 2024-01-06 09:04:27 +09:00
Amos Tan
76ddefa0b4
chore: Update example to react-native 0.72 (#583) 2023-09-15 14:52:16 +09:00
Liam Jones
0dabe1eb8c
Increase responsiveness of single tap menu on Android (#528) 2023-06-03 12:01:29 +09:00
fizhy37
21e315b200
fix: android sdk 33 compatibility (#489) 2022-12-15 17:03:59 +09:00
Alan Toa
c79edc610c
fix: upgrade gradle version (#474) 2022-11-15 16:17:57 -08:00
Marvin Kilp
98812f90db
fix: remove jcenter() in favor of mavenCentral() (#464) 2022-10-31 10:47:25 -07:00
Jesse Katsumata
e8931e9958
Update Kotlin version (#457) 2022-10-18 11:13:10 +09:00
Jesse Katsumata
ad558f8e55
Fix Lint Error and Android Build (#175) 2021-08-21 22:29:33 +09:00
Mateusz Mędrek
b4da9811b8
feat(#90): long press support (#96) 2021-07-03 09:52:50 +09:00
Mateusz Mędrek
81532a4ad7
fix(#146,#70): android type mismatch (#148) 2021-07-03 02:11:24 +09:00
Mateusz Mędrek
878a2a388c
feat(#80): sub menus functionality (#81) 2021-04-24 23:00:27 +09:00
Mateusz Mędrek
bf37c96ce8
feat(#64): isAnchoredToRight android value (#69) 2021-04-04 17:43:08 +09:00
Jesse Katsumata
9cb07cd077
fix: android build (#73) 2021-03-30 13:48:38 +09:00
Jesse Katsumata
d598292f70
Fix: build error on android (#61) 2021-03-27 09:28:54 +09:00
Mateusz Mędrek
fc78b3bdcb
feat(#57): android missing action properties, ios image color (#59)
- 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
2021-03-25 13:14:58 +09:00
Mateusz Mędrek
31a81835bc
Feat/android (#53) 2021-03-23 19:15:48 +09:00
Jesse Katsumata
f459355cb6 chore: initial commit 2020-11-03 07:23:20 +09:00