mirror of
https://github.com/expo/react-native-maps.git
synced 2026-11-15 09:18:08 -10:00
* fixes #2279 todo: add example todo: AIRGoogleMapCalloutSubview* todo: marker-inside-overlay-press? * upd * additions to readme * removed unused (for now) delegate patching * lint fixes * Pass `point` at callout press events * Also pass callout frame todo: fix for Apple map * - Added prop `alphaHitTest` for `Callout` - Added method `getMarkersFrames(onlyVisible=false)` for `MapView` - Fix for pinch gesture * lint fixes * added `getMarkersFrames` to docs * fix * Added `zoomTapEnabled` for `MapView` * Added redrawCallout * Fixes after rborn's review
1.2 KiB
1.2 KiB
<Callout /> Component API
Props
| Prop | Type | Default | Note |
|---|---|---|---|
tooltip |
Boolean |
false |
If false, a default "tooltip" bubble window will be drawn around this callouts children. If true, the child views can fully customize their appearance, including any "bubble" like styles. |
alphaHitTest |
Boolean |
false |
If true, clicks on transparent areas in callout will be passed to map. Note: iOS only. |
Events
| Event Name | Returns | Notes |
|---|---|---|
onPress |
Callback that is called when the user presses on the callout |
<CalloutSubview /> Component API
Note: Supported on iOS only.
Use to handle press on specific subview of callout.
Put this component inside <Callout />.
Events
| Event Name | Returns | Notes |
|---|---|---|
onPress |
Callback that is called when the user presses on this subview inside callout |
Notes
Native press event has property action, which is:
callout-press(ormarker-overlay-pressfor GoogleMaps on iOS) for press on<Callout />callout-inside-press(ormarker-inside-overlay-pressfor GoogleMaps on iOS) for press on<CalloutSubview />