-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Style.t isn't enough, should we add Style.calculated? #523
Comments
Other than passing an
I referred to their definitions in the code and I see that they both are JS objects. The difference seems to me that What am I missing? |
Hum maybe that's the only thing. Maybe my memory has some js artifacts issue (like you cannot spread a style compiled with a StyleSheet.create as those are int & not objects).
You are right. It seems |
I think it's better to keep it in the document as someone may have been using that before moving to Reason and wonder whether a PR is in order 😃 |
As we know, all stylesheet values cannot be used in various places to add/combine styles (because they are
int
). Also we cannot use array() in stylesheets (runtime error).Should we do something (at least try to) to avoid this kind of issue?
Maybe
StyleSheet.create
could returnsStyle.calculated
so we cannot reuse those styles (& btw,flatten
could only accept those styles ?).That would make more complex the way we allow to use style in array for example but I wanted to give it a shot...
Also, in #520 we are saying that
absoluteFill
&absoluteFillObject
are "the same" but they are not are one is a js object & the other is an int...Thoughts?
The text was updated successfully, but these errors were encountered: