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
Latest release delete precomputeStyle module? #3760
Comments
Wondering the same thing over here |
Looks like this commit by @sebmarkbage 6244fd0#diff-459f28dd7480110d5d268af6f1204452 It was a private module so technically we shouldn't have been using it :) Is there a good alternative to use in native modules? |
Yeah, I know it was private, but people were using it (even though technically maybe we shouldn't have) It was useful. Is there an alternative? Maybe it should get made into a public class method of StyleSheet, like StyleSheet.precomputeStyle |
Why and how were you using it exactly? It may product a result that may not be idempotent (in the mathematical sense). I.e. there may not be a public API that you can pass it to because it would be computed again. |
Here's an example that was using it: ptomasroos/react-native-scrollable-tab-view@c111d77#diff-c7ac8c6ffd293d4101dad4033eedd5f7 (The function setAnimationValue uses it.) |
I am facing same problem :) . I am also using react-native-scrollable-tab-view |
I think that was an invalid use of precomputeStyle. Perhaps due to a misunderstanding of the
And is still doing it. What breaks if you just remove the call? |
It also broke this popular scroll refresher component syrusakbary/react-native-refresher#14 |
+1 |
Sorry I just saw this -- I believe the reason why I did this is very silly, you guessed it @sebmarkbage. I didn't realize at the time that I should have used the style key for style props: This is probably because So yeah, |
redbox report 'unknown module precomputeStyle'
The text was updated successfully, but these errors were encountered: