Update component properties when react props were updated
sasha240100 opened this issue · comments
At the moment react-whs
doesn't support updating component properties from React properties. Changing them will result in a component rebuild.
Such feature can be implemented. Using componentWillReceiveProps()
we can compare prevProps
with props
and update only WHS.Component
parameters that were changed in React component.
Such updating methods can be:
.build()
(When unique property of custom component was changed).wrap()
(Any transformations were changed)
But overall, I would recommend updating component.native
values specific to each property to increase performance.