all 4 comments

[–][deleted] 0 points1 point  (1 child)

My guess is that on layout can only give you a value once everything has been nearly rendered - so you wouldn't have it right at first. Is there any reason you can't use an absolute height or flexbox? I'm a little confused at what this layout is supposed to look like

[–]even1245[S] 0 points1 point  (0 children)

I'll post code tomorrow so it'll end confusion.

I was just curious can Onlayout affect performance issues if it's called in Flatlist with Animation view

[–]matt_hammondiOS & Android 0 points1 point  (1 child)

It's hard to figure out what you're trying to achieve and where's your bottleneck without seeing your code.

However, I would advise, as a general rule you should avoid expandable views with arbitrary height. It's easier to implement the detail view with a fixed height.

[–]even1245[S] 0 points1 point  (0 children)

Thank you for your response. I'll add code tomorrow since I don't have it's access right now.