Skip to content

[android] Name from nodeNames List from onNodeTap function doesn't correspond with any name from nodes names. #12

@Mako-L

Description

@Mako-L

On iOS it finds the name of tapped node in nodes correctly but in android it does not.
Android:
nodeNames from onNodeTap [[#2e2b2]]
all nodes names: [#2738c],[#426fe],[#e513c],[#0a1e6],[#7f6b0]
node name from tapped node is no where in our node names.
nodes.add method was used to add nodes.

This might happen because on iOS we have:
let nodeHitResults: Array<String> = allHitResults.compactMap { if let nearestNode = nearestParentWithNameStart(node: $0.node, characters: "[#") { panningNode = nearestNode return nearestNode.name
and in android we return anchorName instead:
if(handleTaps) { objectChannel.invokeMethod("onNodeTap", listOf(anchorName)) } ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions