NativeScript / NativeScript/NativeScript

[iOS] Layout(Absolute Layout) events doesn't work

Open
#8,763 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
25.7k
Forks
1.7k
Avg merge
1d 5h
Merged PRs (30d)
35

Description

Environment

CLI: 6.8.0
Cross-platform modules: 6.1.2
iOS Runtime: 6.1.0
Plugin(s): -
Describe the bug
Not sure to have the best title, but let me describe it. First of all, this happens only in iOS (works fine in android). I have multiple AbsoluteLayout within a GridLayout. But only the last one's tap events work (this is not just about tap event, but the other ones like the Mapbox touch events). I can see the others but can not tap on them or do anything (move the map, etc).

To Reproduce

Expected behavior Work the same way as android.

Additional context
The goal is to have some layouts on the map.

work only doTap3() on IOS
https://play.nativescript.org/?template=play-ng&id=1z5PND

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior with the linked NativeScript Playground example, focusing on the GridLayout containing multiple AbsoluteLayout elements and a Mapbox view. Compare iOS with Android event handling and confirm that all layouts and the map receive their expected touch events on iOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.