New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-24817] Android: Implement ListView Alloy widget support #9955
Conversation
26b4ec6
to
78cb415
Compare
8951403
to
c9e22be
Compare
a00e0b0
to
4bfcb41
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
Holding to 7.4.0 to give iOS team time to do equivalent ticket: https://jira.appcelerator.org/browse/TIMOB-24776 cc @hansemannn |
// handle Alloy widgets | ||
} else { | ||
const widget = Module.main.require('/alloy/widgets/' + namespace + '/controllers/widget'); | ||
if (widget) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should handle plain CommonJS modules here as well? For iOS, we use a fallback case to do this. We require common-js modules to export a view via getView
as well, which is a suitable requirement to have a formal way of knowing where the main view was exported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@garymathews Ping! The iOS PR was just merged.
Updated PR. |
Generated by 🚫 dangerJS |
} else { | ||
let widget = Module.main.require('/alloy/widgets/' + namespace + '/controllers/widget'); | ||
if (!widget) { | ||
Module.main.require(namespace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the assignment is missing here? Also, this does not seem to work with native modules.
REQUIRES tidev/alloy#892
Titanium.UI.ListView
JIRA Ticket