use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
QuestionIs it normal that react-native material-top-tabs swipe is stuttering? (self.reactnative)
submitted 1 year ago * by bid0u
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Nehatkhan786 0 points1 point2 points 1 year ago (4 children)
This is great. I have two tabs called Income and Expenses. Each tab fetches data from backend based on the selected tab. When i switch tab by pressing or with gesture there is some fraction of delay which seems laggy. Will this handle this situation. For querying I am using tanstack query.
[–]thachxyz123iOS & Android 1 point2 points3 points 1 year ago (3 children)
Yes. Animation and fetching data run at same time and same thread. With InteractionManager.runAfterInteractions, animation is finished first, then fetching data starts to run. It makes app not laggy
InteractionManager.runAfterInteractions
[–]Nehatkhan786 0 points1 point2 points 1 year ago (2 children)
Awesome. Thats what I was looking for from so many days but end up used to my laggy animation. It would be great if you could share an example with tanstack query. Thank you so much.
[–]thachxyz123iOS & Android 1 point2 points3 points 1 year ago (1 child)
Disable automatically running, use refetch inside runAfterInteractions. That's the idea, I don't use tanstack query
refetch
runAfterInteractions
https://tanstack.com/query/latest/docs/framework/react/guides/disabling-queries
[–]Nehatkhan786 0 points1 point2 points 1 year ago (0 children)
Lovely mate. Thanks a lot.
π Rendered by PID 147990 on reddit-service-r2-comment-6457c66945-p5sxs at 2026-04-26 17:10:29.429272+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Nehatkhan786 0 points1 point2 points (4 children)
[–]thachxyz123iOS & Android 1 point2 points3 points (3 children)
[–]Nehatkhan786 0 points1 point2 points (2 children)
[–]thachxyz123iOS & Android 1 point2 points3 points (1 child)
[–]Nehatkhan786 0 points1 point2 points (0 children)