Skip to content
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

Approximate text size typing fix #1631

Merged

Conversation

jlismore
Copy link
Contributor

@jlismore jlismore commented Jun 30, 2020

The typing is incorrect for the approximateTextSize utility function. This PR corrects the return shape to be {width:number, height:number}.
Also, based on the code and tests for the function, it appears that calling without the second style object is allowed so I marked it optional.

@boygirl
Copy link
Contributor

boygirl commented Jun 30, 2020

@jlismore Thanks for this fix! Mind running nps format and committing the prettier-formatted result?

@boygirl
Copy link
Contributor

boygirl commented Jul 1, 2020

Thanks! I'll get a patch out for you now

@boygirl boygirl merged commit 98281e9 into FormidableLabs:main Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants