Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ViewGroupManager vs SimpleViewManager

In react-native what are the deff* between ViewGroupManager and SimpleViewManager ?

Thanks.

like image 541
tarik203 Avatar asked Dec 15 '17 10:12

tarik203


1 Answers

I think the answer to that is exactly the same as this:

Difference between View and ViewGroup in Android

SimpleViewManager extends View

and

ViewGroupManager extends ViewGroup

I copy the following image from the above answer that explains their difference:

So to simplify things, it looks like whenever you have a very similar native UI component then you'd wanna use a SimpleViewManager, but if you want to have children within parents then you need to use a ViewGroupManager.

like image 74
SudoPlz Avatar answered Nov 15 '22 09:11

SudoPlz