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
ShadowFlex component does not seem to be processing props change thus not always rendering properly.
This added to ShadowFlex.js seems to fix it.
componentDidUpdate(_prevProps, prevState) { const { style } = this.props; if ( prevState?.shadowStyle?.shadowOffset !== style?.shadowOffset || prevState?.shadowStyle?.shadowOpacity !== style?.shadowOpacity || prevState?.shadowStyle?.shadowRadius !== style?.shadowRadius || prevState?.shadowStyle?.shadowColor !== style?.shadowColor || prevState?.shadowStyle?.borderRadius !== style?.borderRadius || prevState?.shadowStyle?.backgroundColor !== style?.backgroundColor ) this.setState({ ...prevState, shadowStyle: { ...prevState?.shadowStyle, shadowOffset: style?.shadowOffset, shadowOpacity: style?.shadowOpacity, shadowRadius: style?.shadowRadius, shadowColor: style?.shadowColor, borderRadius: style?.borderRadius, backgroundColor: style?.backgroundColor, }, }); }
The text was updated successfully, but these errors were encountered:
Same problem here, is there any updates?
Sorry, something went wrong.
I ended up using patch-package and fixed the package using above snippet
Same problem for me, any updates?
No branches or pull requests
ShadowFlex component does not seem to be processing props change thus not always rendering properly.
This added to ShadowFlex.js seems to fix it.
The text was updated successfully, but these errors were encountered: