-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would it be possible to add a sample for the new ViewNode in Compose (in v2.1.0)? #456
Comments
The problem is in ViewAttachmentManager. It adds FrameLayout to WindowManager and non of them have reference on LifecycleOwner. Here is workaround I created temporary. Replace lib's ViewAttachmentManager on this one: `import android.content.Context /**
|
Previously, I would use the ViewRenderable to render an AndroidView. However, as
ViewNode
has changed significantly in v2.1.0, I am unable to get my AndroidView to show properly.This is my old code:
This is my broken attempt at trying to render the a child node:
Running the above results in the following crash:
Could anyone guide me in the right direction to render a ViewNode properly in v2.1.0?
The text was updated successfully, but these errors were encountered: