I'm working on an IOS app in React Native right now, and we present our content feed to the user as a flatlist that they can scroll through. I need to keep track of how far they have scrolled into that flatlist so that I know which posts they have actually viewed in case they close the app. I'm looking at using React Asynchronous storage for this, but I was wondering how I can actually implement that into my flatlist.
Tracking how far a user has scrolled in a React Native flatlist
636 Views Asked by the_lost_intern At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in REACT-NATIVE
- ussd reader in Recket Native module
- I can't make TextInput to auto expand properly in Android
- expo config plugin use import instead of require
- Custom Sound for Expo Push Notifications Only Works in Foreground
- run RTK dispatch on gesture start with React Native
- Should I set Back-End for my React Native application?
- using infoPlist in app.json for expo project seems to not be working
- Anyone have success configuring react-native-home-indicator?
- KeyboardAvoidingView makes a messy the flexbox
- I am getting lots of errors when building react native app in Xcode
- Search and highlight text of current text in PDFKit Swift
- Flatlist Sometimes Capped at 10 Items Bug
- Is there any way to page transition in react native (stack navigation)
- Screen inside Stack.Navigator not visible in React-Native
- React Native stopwatch implementation slow on iOS
Related Questions in REACT-NATIVE-FLATLIST
- JSON file of 7000 meetings in multiple timezones and Flatlist
- ReactNative FlatList: fluid expansion of an item in an absolute layover
- React Native FlatList for Chat Application to Instantly Show Latest Messages
- React Native - FlatList adds an unwanted View
- What should I do to enable automatic scrolling for a FlatList displaying images in a 150 x 150 square in React Native?
- How to turn a flatlist into a custom navigation bar in react native?
- Invalid attempt to destructuring non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method
- Flatlist with Absolute position is hidden behind other elements, even with zIndex
- How to implement automatic scrolling `FlatList` when pressing components that are nested in the `renderItem`?
- Dynamic number of columns in flatlist
- Flatlist show green tick once an item's API is completed
- How to create a filter function with api call and context?
- Implement an infinite list picker animation in React-Native
- How can I implement drag and drop functionality between two FlatLists in React Native?
- FlatList not working inside react native action sheet on Android
Related Questions in REACT-ASYNC
- Style for react-select-async-paginate
- react lazy with async dynamic imports causes wrong orders in deployment
- How can i async await in setting fetchOptions in a createClient function in urql
- Why does the return data of a function useAsync appear undefined?
- How to keep the selected option form dropdown still visible in dropdown
- How to define useAsync (react-async-hook) with TypeScript?
- Updating FlatList data with useState infinitely recurs in React Native
- Async React Select component how to change the argument of the loadOptions function
- Correct Way to Update Sate before Async call
- How can I add image elements to my page dynamically?
- Tracking how far a user has scrolled in a React Native flatlist
- Caught Error error while using useEffect react native HOOks
- Is there a way to await changes in state? (not setState)
- How to apply Google Distance Matrix Service efficiently in React Redux?
- Async throws error in React Functional Component
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use
onViewableItemsChanged, for example:Doc: https://reactnative.dev/docs/flatlist#onviewableitemschanged