AndreaVitale / av.imageview

Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
MIT License
96 stars 29 forks source link

av.imageview inside ItemTemplate #82

Closed fede1295 closed 4 years ago

fede1295 commented 4 years ago

As per documentation I wrote this:

`

`

I always get the same error:

[ERROR] : TiExceptionHandler: (main) [248,11451] ti:/listview.js:93 [ERROR] : TiExceptionHandler: parentProxy = parentProxy[segments[i]]; [ERROR] : TiExceptionHandler: ^ [ERROR] : TiExceptionHandler: TypeError: Cannot read property 'imageview' of undefined [ERROR] : TiExceptionHandler: at lookupProxyConstructor (ti:/listview.js:93:29) [ERROR] : TiExceptionHandler: at lookup (ti:/listview.js:126:13) [ERROR] : TiExceptionHandler: at processChildTemplates (ti:/listview.js:56:28) [ERROR] : TiExceptionHandler: at UI.createListView (ti:/listview.js:22:6) [ERROR] : TiExceptionHandler: at UIWrapper.invoker [as createListView] (ti:/invoker.js:105:19) [ERROR] : TiExceptionHandler: at new Controller (eval at Module._compile (/app.js:727:16), <anonymous>:105:79) [ERROR] : TiExceptionHandler: at Object.exports.createController (eval at Module._compile (/app.js:727:16), <anonymous>:431:10) [ERROR] : TiExceptionHandler: at modeView (eval at Module._compile (/app.js:727:16), <anonymous>:366:26) [ERROR] : TiExceptionHandler: at eval (eval at Module._compile (/app.js:727:16), <anonymous>:149:9) [ERROR] : TiExceptionHandler: at Object.onLoad (eval at Module._compile (/app.js:727:16), <anonymous>:96:5) [ERROR] : V8Exception: Exception occurred at ti:/listview.js:93: Uncaught TypeError: Cannot read property 'imageview' of undefined

Does anyone know how to help me? thank you

m1ga commented 4 years ago

First: it would be way easier to read if you format your code correctly!

Please have a look if you use lower-case imageview somewhere. The XML part looks right and I'm using it like this too.

AndreaVitale commented 4 years ago

Don't forget to declare AvImageview inside your alloy.js as explained in the README. It works fine also for me. If you have a reproducibile test case, provide it and we can have a look.