We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently using component instead
component(c, RecyclerCollectionComponent::create) { section( ResultsListSection.create(SectionContext(c)).results(results).build()) .disablePTR(true).flexGrow(1f) }
But ideal would be closer to
recycler(RecyclerCollectionComponent::create) { section { results(results).build()).disablePTR(true).flexGrow(1f) } }
The text was updated successfully, but these errors were encountered:
You just need to define a new extension function, basically exactly what you did with component except define it with a name somewhere:
component
@LithoMarker fun recyclerCollectionComponent(c: ComponentContext, init: RecyclerCollectionComponent.Builder.() -> Unit) = component(c, RecyclerCollectionComponent::create, init) @LithoMarker fun ChildHolder.recyclerCollectionComponent(c: ComponentContext, init: RecyclerCollectionComponent.Builder.() -> Unit) = component(c, RecyclerCollectionComponent::create, init)
Going to close this for now as I'll be updating and adding this function in a few minutes.
Sorry, something went wrong.
No branches or pull requests
Currently using component instead
But ideal would be closer to
The text was updated successfully, but these errors were encountered: