JungHsuan / react-native-collapsible-tabview

This is only an implementation of tabview with collapsible header.
MIT License
284 stars 60 forks source link

Crashing when calling syncScrollOffset() function. #3

Closed sagrawalcb closed 4 years ago

sagrawalcb commented 4 years ago

item.value.scrollaToOffset is not function.

k9p5 commented 4 years ago

Just replace both lines with: item.value.getNode().scrollToOffset({

JungHsuan commented 4 years ago

Yes, @kpaulus1997, thank you for your reply. @sagrawalcb you should add getNode() on the ref of animated component before react-native 0.62.0.

listRefArr.current.push({
    key: route.key,
    value: ref.getNode(),
});  
sagrawalcb commented 4 years ago

This did the trick. Thanks