setFlexBasisAuto is not a function #766
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issues and Steps to Reproduce
npm install yoga-layout
node.setFlexBasisAuto()
- wherenode
is aNode
instanceExpected Behavior
Should set the flex basis to auto
Actual Behavior
Error:
node.setFlexBasisAuto is not a function
Note that the setFlexBasisAuto function is missing from entry-common.js
Pull Request: https://github.com/facebook/yoga/pull/767
Note: For now, until
setFlexBasisAuto
is added like the other functions, I've discovered the following alternative:For now, set
NaN
instead. it worked for me.