I need render react childs in custom view on my native module. I did it in iOS and want to know how to do it in Android.
In iOS i simple created UIView and overridden method didUpdateReactSubviews in my RCTView:
+-----------------------+
| RCTView |
| +--------------------+|
| | UIView innerView ||
| | +-----------------+||
| | | React childs |||
| | +-----------------+||
| +--------------------+|
+-----------------------+
let innerView: UIView = UIView()
...
override func didUpdateReactSubviews() {
for subview in self.reactSubviews() {
innerView.addSubview(subview)
}
}
How i do it in Android?