Commit Graph

23 Commits

Author SHA1 Message Date
Jasper Aelvoet
b28b0ec321
fix: Replace jcenter() with mavenCentral() in build.gradle (#169) 2025-10-20 10:17:00 -04:00
Christoph
e763467b9b
feat(android): Add fontName prop (#146) 2025-03-11 10:04:08 -04:00
amiagr
69ddc37d74
build: added namespace for AGP version 7+. This should fix compatibility issues with gradle 8. (#133) 2024-09-29 12:13:53 -04:00
Mateusz Łopaciński
8ac1c21436
Fix context menu popping up issue on Android while the list is scrolled in the bottom sheet (#123) 2024-06-25 07:23:20 -04:00
CHAE
b67065ab1b
fix(android): Modify to pass touch event to child views in onInterceptTouchEvent (#116) 2024-04-28 17:56:43 -04:00
Laszlo Kocsis
bea0a1c6c3
feat(iOS): add customIcon and customIconName properties to the action object (#111)
* Add customIcon and customIconColor properties to ContextMenuAction

* Convert the new ContextMenuAction properties

* Set customIcon with customIconColor, if available, for the ContextMenu actions

* Add type declarations for new props

* Update README with new action props, fix other typos

* Add example for new action props

* Update readme and specify the higher priority of customIcon

* Refactor icon and iconColor props on iOS native side

* Remove "system" prefix from icon and iconColor on Android native side

* Update type declarations with new the new prop changes

* Update and format README

* Call processColor for iOS in index.js
2024-02-20 13:12:52 -05:00
Matthew Iannucci
e14b4ea17c
Switch Android ContextMenu Implementation (#107)
* Switch android impl to use native contextmenu view

* Fix click callbacks

* Nested menus working on android

* Clean up

* Bump version

* Add icon functionality back to android context menus
2023-12-07 11:48:43 -05:00
Vidocq
a2e9a35e31
feat(android): support set icon color (#103) 2023-12-03 13:56:47 -05:00
Vidocq
88dc1a0840
fix(android): icon theme does not set (#104) 2023-12-03 13:53:47 -05:00
Vidocq
2a501a0a55
fix(android): menu shows when disabled set in some cases (#102) 2023-11-28 08:58:40 -05:00
Vidocq
8517ad49a3 feat(android): support disable menu 2023-11-08 05:37:40 -05:00
Vidocq
46f5a4997d feat: android support destructive item 2023-10-26 09:19:27 -04:00
Vidocq
ca712cfe3f refactor: better way to display icon on Android 2023-10-25 17:27:14 -04:00
Vidocq
d42655d1f8
feat: support android icon (#96)
* chore: add icon vector files

* feat: android icon

* feat: android icon demo

* docs: description for android icon
2023-10-25 13:58:39 -04:00
Andrei
cedf3629c8
Update build.gradle - compatibility with Gradl 8.0 (#87) 2023-07-06 11:39:02 -04:00
Matthew Iannucci
8daf35a4c4 Fix android build errors 2022-04-20 13:59:02 -04:00
Matthew Iannucci
b4310f2ecc
Fix bad merge (#55) 2022-04-20 13:13:35 -04:00
Ivanka Todorova
3b6b8718c2
feat: replace maven with maven-publish (#45)
use `maven-publish` in order to support React Native versions with Gradle 7 (0.67.x)
2022-03-02 11:09:45 -05:00
Alessandro Decina
1e4778c0e9 android: fix LongPress detection
Fix LongPress being accidentally fired for taps and scrolls.

The GestureDetector detects LongPress by processing ACTION_DOWN, setting a
timer to fire LongPress, then cancelling the timer upon receiving further
interaction events (eg ACTION_MOVE when scrolling is initiated, or ACTION_UP
when a finger is lifted, etc).

This changes ContextMenuView::onTouchEvent() to return true, as
false instructs the input system to stop forwarding successive events from the
current interaction, causing the GestureDetector to only see ACTION_DOWN events
and wrongly fire LongPress for every interaction.
2020-07-27 19:46:24 +10:00
Jacob Parker
a2a2dfdfb2 Implement destructive and disabled items 2020-06-02 18:30:27 +01:00
Jacob Parker
bbb2c0e4d6 Add index to onPress callback, improve documentation 2020-06-01 22:29:04 +01:00
Matthew Iannucci
80d0be8474 Bring over android code 2020-04-27 14:05:26 -04:00
Matthew Iannucci
adecee3a93 Initial commit of new module 2020-04-27 11:39:10 -04:00