mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 06:06:52 +08:00
fix(android): update custom createVirtualNode arguments
This commit is contained in:
+3
-2
@@ -442,8 +442,9 @@ public class ControllerManager {
|
||||
@NonNull String className,
|
||||
@Nullable Map<String, Object> props) {
|
||||
HippyViewController<?> controller = mControllerRegistry.getViewController(className);
|
||||
if (controller != null) {
|
||||
return controller.createVirtualNode(rootId, id, pid, index, props);
|
||||
Renderer renderer = mRendererWeakRef.get();
|
||||
if (controller != null && renderer instanceof NativeRender) {
|
||||
return controller.createVirtualNode(rootId, id, pid, index, props, (NativeRender) renderer);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
+1
-1
@@ -400,7 +400,7 @@ public abstract class HippyViewController<T extends View & HippyViewBase> implem
|
||||
@SuppressWarnings("unused")
|
||||
@Nullable
|
||||
public VirtualNode createVirtualNode(int rootId, int id, int pid, int index,
|
||||
@Nullable Map<String, Object> props) {
|
||||
@Nullable Map<String, Object> props, @NonNull NativeRender nativeRender) {
|
||||
// The host can create customize virtual node in a derived class.
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user