talut / react-native-pin-view

Easy, convenient, quick-forming PinView component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fill last circle before onComplete event

hosseinpro opened this issue · comments

I put PinView in a modal screen and hide the modal screen in onComplete event. Every thing is ok but PinView raise onComplete just after pressing last number button without filling the last circle.

How can I solve that?

Hi, yes onComplete is calling after last number clicked. After this, state is updating and filling last circle. So, I think I can change this method to calling onComplete after state updated.
I can't update right now because of the job intensity. But I'll look at this.

Thanks.

Thank you.

Hi, I added a props for solving this issue. if you update package to v2.1.0 you can set delayBeforeOnComplete right now default value is 175ms

Thank you. I checked that but I get the onComplete event with a big waiting more than 175ms.
On the other hand when I set delayBeforeOnComplete={0}, it works perfectly! The last circle is filled and then I get the onComplete event.