Hi,
I tried this mini module:
var Module = function() { return this; }; Module.prototype = { createView : function(options) { this._options = options; this._view = Ti.UI.createView({ width : options.width, height : options.height }); return this._view; } }; module.exports = Module;This module is successful build.
Now I call it (after embedding in tiapp.xml):
var Animator = new (require('de.appwerft.view360'))(); var view360 = Animator.createView({ images : images, width: WIDTH, height : 0.8 * WIDTH });On runtime: [Object de.appwerft.view360] is not a constructor
Any ideas?