79245906

Date: 2024-12-02 23:56:58
Score: 0.5
Natty:
Report link

This might be too late, but I had this issue today and could solve it with the action prop, which is triggered when the component finishes rendering (on mount), it did not work when right away triggering updateHeight(), but it did with the minimal setTimeout():

<SwipeableViews
    enableMouseEvents
    animateHeight
    action={(node) => setTimeout(() => node.updateHeight(), 1)}
  >
    ...
</SwipeableViews>

I hope it helps new users, i love this library.

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): hope it helps
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rafita Barajas