[TIMOB-25908] Windows: require/import with namespace for Hyperloop
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-05-20T02:14:04.000+0000 |
Affected Version/s | Hyperloop 3.0.3 |
Fix Version/s | Release 7.3.0 |
Components | Windows |
Labels | hyperloop |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2018-03-28T06:21:26.000+0000 |
Updated | 2018-07-05T21:59:23.000+0000 |
Description
require(package_name).class_name
doesn't work for Hyperloop Windows.
var Popups = require('Windows.UI.Popups.*');
var MessageDialog = Popups.MessageDialog;
var dialog = new MessageDialog();
This doesn't work because Hyperloop Windows require
needs _fully qualified class name or enum_ and require against package name is not implemented.
https://github.com/appcelerator/titanium_mobile_windows/pull/1216 https://github.com/appcelerator/hyperloop.next/pull/281