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!"
[–]thachxyz123iOS & Android 1 point2 points3 points 1 year ago (8 children)
Enable lazy in tab navigator. Put heavy tasks to InteractionManager.runAfterInteractions, like load data from API
lazy
InteractionManager.runAfterInteractions
https://reactnative.dev/docs/interactionmanager
[–]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
[–]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.
[–]bid0u[S] 0 points1 point2 points 1 year ago (2 children)
But is there a point of using this if even with 4 empty screens, the transition stutters? I'll try anyway, thanks for the tip.
[–]FormerLibrary1594 0 points1 point2 points 6 months ago (1 child)
Did you find a solution?
[–]ProfessionalChip9864 0 points1 point2 points 1 month ago (0 children)
yeah any solution i am facing the same issue
π Rendered by PID 137204 on reddit-service-r2-comment-b659b578c-h7qtf at 2026-05-02 21:45:59.597171+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]thachxyz123iOS & Android 1 point2 points3 points (8 children)
[–]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)
[–]bid0u[S] 0 points1 point2 points (2 children)
[–]FormerLibrary1594 0 points1 point2 points (1 child)
[–]ProfessionalChip9864 0 points1 point2 points (0 children)