Open pke opened 1 year ago
This piece of code is running whenever you are changing your step, just it adds a condition here that if it is last step which the user has clicked then they are animating it down with opacity 1 to 0.
I'm also encountering the same error when i'm clicking multiple times fast. Then it gives me the your mentioned error, I did the fix you have written here but on last step (fast clicking on steps) the modal opacity doesn't gone
https://github.com/xcarpentier/rn-tourguide/blob/72ae702217f311d5d5fbf0323e63022b383ba30b/src/components/Modal.tsx#L196
currentStep!
is the culprit. It is undefined at that moment and should be bettercurrentStep?.tooltipBottomOffset
The question is, why the code is executed after the tour has finished.