Open pgrepds opened 2 years ago
I am facing the exact Issue... Anyone able to solve this?
You do not need to create a custom index state.
Follow this example: https://github.com/Jacse/react-native-app-intro-slider/issues/224#issuecomment-1367099899
I want to call
goToSlide
using aref
to theAppIntroSlider
and I want to save the current index in a state. Consider the following example.If I press
MyCustomButton
, thenonSlide
is called with the correct index1
. ThesetIndex
causes a rerender and it seems that theonSlideChange
function is called again with the old initial index0
.Is there a way to make this setup work or is this behavior by design?
Version: 4.0.4