Merged
Conversation
Member
Author
|
@cknitt ? |
Member
|
Sorry for the late reply. I think we should stay with an abstract type for correctness. type transform
type perspectiveTransform = {perspective: float}
external perspective: perspectiveTransform => transform = "%identity"
type rotateTransform = {rotate: angle}
external rotate: rotateTransform => transform = "%identity"
...? |
Member
Author
|
Thank's for your reply! I don't think there's a big difference between those two syntaxes. It's not enough to justify a rewriting imho. let transformStyle = [perspective(~perspective=2.0), scale(~scale=1.5)]let transformStyle = [perspective({perspective: 2.0}), scale({scale: 1.5})] |
Member
Author
|
Hi @cknitt, can I have a review? thanks :) |
cknitt
approved these changes
Jan 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I deprecate some missing
@objon the project but I can't decide what to do with some of them.Example with
transformIn the react-native doc it's:
We cannot type it with
@unboxedso I only see two strategies:Pro: JS output is clean
Con: Can be error prone
Pro: Enforce type
Con: JS output an object with a
TAGfield (even if we can cutomize it with@tag)What's your opinion on it @cknitt ?