Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26809] Android: ListView itemId gets stringified, cannot use Object

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelsengSchedule
ReporterHans Knöchel
AssigneeAbir Mukherjee
Created2019-02-08T10:41:08.000+0000
Updated2021-02-12T02:33:05.000+0000

Description

When using the itemId property on Android, the value of it automatically gets stringified, resulting in weird behaviors like in our case, where an Object becomes a string, whereby on iOS it works fine.

Comments

  1. Hans Knöchel 2019-02-08

    The docs clearly state to use a String here, so actually we were wrong and the iOS platform should throw an error when a non-string value is used (or at least a warning that something was stringified). The same warning could appear on Android as well.
  2. Joshua Quick 2019-02-08

JSON Source