Wrapped components aim to resolve unexpected property change issues.
For example the focus property of input and textarea triggers a focus action each time when this.setData called. But in React world we expect it only happen when focus becomes true from false.
The wrapped component prevent useless setData by observe method to fix this issue. Because it's a custom component we need to test it carefully on each enabled platform.
Wrapped components aim to resolve unexpected property change issues.
For example the
focus
property ofinput
andtextarea
triggers a focus action each time whenthis.setData
called. But in React world we expect it only happen whenfocus
becomestrue
fromfalse
.The wrapped component prevent useless
setData
byobserve
method to fix this issue. Because it's a custom component we need to test it carefully on each enabled platform.