Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25908] Windows: require/import with namespace for Hyperloop

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-05-20T02:14:04.000+0000
Affected Version/sHyperloop 3.0.3
Fix Version/sRelease 7.3.0
ComponentsWindows
Labelshyperloop
ReporterKota Iguchi
AssigneeKota Iguchi
Created2018-03-28T06:21:26.000+0000
Updated2018-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.

Comments

  1. Kota Iguchi 2018-03-29

    https://github.com/appcelerator/titanium_mobile_windows/pull/1216 https://github.com/appcelerator/hyperloop.next/pull/281
  2. Samir Mohammed 2018-07-05

JSON Source