You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by 杨胜涛 <ya...@gmail.com> on 2017/04/07 09:31:16 UTC

How elegant weex support component without view

Dear all,

Because there are a lot of business using virtual node which is a component
without view. Based on the current implementation on iOS, it can be
implemented by the following way.

override this method

- (void)insertSubview:(WXComponent *)subcomponent atIndex:(NSInteger)index

But this way is not very elegant, and there are a lot of redundant
operations.


So, I submitted a PR https://github.com/apache/incubator-weex/pull/224 to
solve this problem in the iOS/Android platform.


Thanks!