-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ANDROID - Cannot set initial position #84
Comments
@kevinhimawan I think that It is an issue of scroll view on android. I resolved it by set timeout for scrollTo() function in the source code |
can you provide code? how you managed |
@hthakore You can try to replace line 80 by |
try to update the state declaration expression at line 47
|
I fixed this issue wrt to @khanshamshad32 comment which will resolve the initial index issue. Thanks, Buddy. So to fix the initial position issue and any other slider position issue needs to do this.
to this
and also comment this if condition else you always receive the same index which you passed as initial. and don't forget to pass the initial index value now for slider with position = {index}
here it whole class looks like this now
|
Hello i am trying set initial position of the slider, position={ numberPosition }. In IOS it works fine, but in ANDROID it always start from 0, suppose start from the value of numberPostion variable.
here is my code
The text was updated successfully, but these errors were encountered: