[TIMOB-18878] Windows: Hook loading of native types through require
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-05-15T19:37:31.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2015-05-07T21:55:53.000+0000 |
Updated | 2017-03-14T20:14:44.000+0000 |
Description
When typical require returns no results, and the type if a native types (i.e. 'Windows.UI.Xaml.Controls.Page') we need a mechanism to register a callback/hook into the Windows global object to then create our type wrapper class for it, and return it as the module.exports value.
We should allow searching for files matching that name in JS in case someone wants to have a JS overridden version that "wins" for require.
Ideally we'd have the global allow registering the hook at runtime and have the actual hook int he user's app so it limits the scope of types it'd pull in.
This is now working in the native branch
Closing ticket as fixed.