You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked the blockWidth that is set in the state of each block and seems like this is the same for most of the blocks. The blockWidth is different only for nested blocks like Column, Button etc. I’m wondering if we could measure the width at the top and then pass it to the bottom by a prop. Then set the passed value from props as a default value in state and set the width one more time only if the value in onLayout is different. I also found that we do the same inside the block.native.js which is a child of block-list-item.
Please check block.native.js and block-list-item.native.js
The text was updated successfully, but these errors were encountered:
I checked the
blockWidth
that is set in the state of each block and seems like this is the same for most of the blocks. TheblockWidth
is different only for nested blocks like Column, Button etc. I’m wondering if we could measure the width at the top and then pass it to the bottom by a prop. Then set the passed value from props as a default value in state and set the width one more time only if the value in onLayout is different. I also found that we do the same inside the block.native.js which is a child of block-list-item.Please check block.native.js and block-list-item.native.js
The text was updated successfully, but these errors were encountered: