Currently, animation being used in Collapsible is running on JS thread that might degrade performance. It is not possible to fix that using built-in Animation API as it's impossible to animate height with useNativeDriver flag and I don #267 actually fixes this. But it's definitely possible using react-native-reanimated. You can try applying changes or use my fork (you need to install and configure react-native-reanimated first) and if there is demand I could make a real PR. Please note that this is just WIP and you cannot configure animations right now.
Hey @radko93 thanks for your submission. Any performance gains are welcomed. Tried using the example app with your fork, but just saw some slight issues with measuring and animations.
Currently, animation being used in Collapsible is running on JS thread that might degrade performance. It is not possible to fix that using built-in
Animation
API as it's impossible to animate height withuseNativeDriver
flag and I don #267 actually fixes this. But it's definitely possible usingreact-native-reanimated
. You can try applying changes or use my fork (you need to install and configurereact-native-reanimated
first) and if there is demand I could make a real PR. Please note that this is just WIP and you cannot configure animations right now.