-
Notifications
You must be signed in to change notification settings - Fork 766
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
Transition won't work on SolidColor component #578
Comments
Hey @dev-sareno, it indeed sounds like a bug. I checked it in our sample app and I can reproduce your case. TLDR; of what's happening is that when you use In the meantime you can unblock yourself by using GLOBAL scope for your keys: in onCreateLayout:
in
And here are docs for global vs local keys: https://fblitho.com/docs/transition-key-types |
Reopening till it's fixed |
Hi @dev-sareno, can you check if this one is fixed? We made some fixes in terms of how transitions work with MountSpecs vs LayoutSpecs, and hopefully this'll help |
Transitions isn't working on SolidColor but it works fine in other components such Row, Column, Text, etc.
I'm not sure if it was an intended behaviour. The following might be helpful
Version:
// Litho
implementation 'com.facebook.litho:litho-core:0.29.0'
implementation 'com.facebook.litho:litho-widget:0.29.0'
kapt 'com.facebook.litho:litho-processor:0.29.0'
// SoLoader
implementation 'com.facebook.soloader:soloader:0.6.0'
// For integration with Fresco
implementation 'com.facebook.litho:litho-fresco:0.29.0'
// Sections
implementation 'com.facebook.litho:litho-sections-core:0.29.0'
implementation 'com.facebook.litho:litho-sections-widget:0.29.0'
compileOnly 'com.facebook.litho:litho-sections-annotations:0.29.0'
kapt 'com.facebook.litho:litho-sections-processor:0.29.0'
@LayoutSpec object UIExpScaleAnimSpec { @OnCreateInitialState fun onCrateInitialState(c: ComponentContext, scale: StateValue ) { scale.set(1f) }
}
The text was updated successfully, but these errors were encountered: