[TIMOB-26580] Android: ListView templates not compatible with native modules
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-01-08T19:04:59.000+0000 |
Affected Version/s | Release 7.5.0 |
Fix Version/s | Release 8.0.0, Release 7.5.1 |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2018-11-16T22:42:12.000+0000 |
Updated | 2019-01-09T20:51:26.000+0000 |
Description
ListView templates have a bug that prevents support for native modules.
var template = {
childTemplates: [
{
type: '<native-module-namespace>,
bindId: '',
properties: { ... }
}
]
};
master: https://github.com/appcelerator/titanium_mobile/pull/10479
FR Passed. PR Merged.
7_5_X: https://github.com/appcelerator/titanium_mobile/pull/10509
still having this problem after test with the latest SDK 7.5.1.v20181204143821 [ERROR] : TiExceptionHandler: (main) [2537,4852] ti:/listview.js:54 [ERROR] : TiExceptionHandler: childProxy = creationFunction(creationProperties); [ERROR] : TiExceptionHandler: ^ [ERROR] : TiExceptionHandler: TypeError: creationFunction is not a function [ERROR] : TiExceptionHandler: at processChildTemplates (ti:/listview.js:54:19) [ERROR] : TiExceptionHandler: at processChildTemplates (ti:/listview.js:65:4) [ERROR] : TiExceptionHandler: at UI.createListView (ti:/listview.js:20:6) [ERROR] : TiExceptionHandler: at UIWrapper.invoker [as createListView] (ti:/invoker.js:101:19) [ERROR] : TiExceptionHandler: at new Controller (eval at Module._compile (app://app.js:728:13),
Reopening. I am able to reproduce the error in the above comment.
master: https://github.com/appcelerator/titanium_mobile/pull/10517
FR Passed for master. PR for master merged. Waiting for backport.
7_5_X: https://github.com/appcelerator/titanium_mobile/pull/10526
FR passed & merged for backport.
Verified the fix in SDK 7.5.1.v20181210141225 & 8.0.0.v20181210140414. Closing.
For me it is fixed in 7.5.1.v20181210141225 (7.5.1.RC) but with 8.0.0.v20181214080710 (latest 8 at the moment) I'll end up with this error again:
using
<ImageView bindId="image" class="profil_img" ns="AvImageview"/>
inside a ListViewWith 8.0.0.v20181030074154:
7.5.1.v20181210141225 still works fine.
[~michael], I am not able to reproduce it. I tried it using the SDK above & also with the latest 8.0.0 SDK. My index.xml below:
Oh, I'm sorry. I didn't pay attention to the numbers after I've download the SDK from the build server! It threw me back to October after some seconds. But with 8.0.0.v20181214080710 I still have the error when extending your example to a custom view module (ti.animation in my case). Again, fine with 7.5.1.v20181210141225, broken in 8.0.0.v20181214080710 (the creationFunction error). Full example: https://migaweb.de/listview_test.zip with all modules.
[~michael], I can reproduce the issue it with
ti.animation
& latest 8.0.0 SDK. I will reopen the ticket for now.Reopening for now as the issue is seen with
ti.animation
.master: https://github.com/appcelerator/titanium_mobile/pull/10577
FR Passed. Waiting for merge to be ready.
Master PR merged.
8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10586