[TIMOB-19245] Windows: Allow mixing Ti.Ui.View and Windows UI components
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-09-28T17:14:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2015-07-22T00:00:20.000+0000 |
Updated | 2015-11-17T19:52:32.000+0000 |
Description
If a developer uses the native wrappers they currently cannot generate native UI components and then add those to a Titanium View/Window, and vice versa. We should support the ability to wrap native UI widgets as Ti.UI.Views when necessary, or unwrap Ti.UI.View native components to native wrappers when necessary. This is something Pedro's ti.reflex handles.
I'm seeing crashes on app startup when I mix and match Titanium UI Windows and a TextBlock natively. (win.add(textBlock);) Not sure what the root cause is yet.
Verified using: OS: Microsoft Windows 10 Pro 10.0.10240 Appc core: 5.1.0-60 Appc NPM: 4.2.1 Ti SDK: 5.1.0.v20151116164430 Appc Studio: 4.4.0.201511130407 Using the below examples works with no issues
Closing ticket