Questions tagged [scrolltoindex]
16 questions
10
votes
4 answers
React Native FlatList scrollToIndex() is not working when screen loaded for the first time
I have this category filter component in my react native application. For the first time this component is loaded it does not scroll to given index item (i.e 3). I checked and the function scrollToIndex is calling. But after loading the screen when…

John Stuart
- 950
- 5
- 11
- 28
2
votes
0 answers
How to wait until keyboard is raised in flutter?
I'm using the scroll to index
library here
(When I press the reply button of the comment, the scroll is moved to the comment area where I pressed the reply button.)
Pressing the reply button activates the keyboard, which becomes strange because it…

aimyon
- 63
- 3
1
vote
0 answers
How to do Positional Scroll in GroupedListView
How to do Positional Scroll in GroupedListView. this is a one-to-one chat screen and I want to search for an element in the chat list and scroll to a specific index in the chat list I use grouped list view instead of the list view. means I want to…

Vasoya Jemish
- 191
- 1
- 10
1
vote
0 answers
Jetpack compose : LazyColumn scroll incorrectly until the content items are scrolled / seen at least once
I am facing issue in jetpack compose LazyColumn scroll feature. I have 4 items in LazyColumn which are dynamically loaded from server and I do have a top bar which can be used to jump to those 4 sections straightaway.
Scenario 1 (jumping on indexes…

Anand Chaudhari
- 83
- 1
- 9
1
vote
1 answer
react-naitve, how to move to certain item in flatlist
I am making my own app using react-native
I have some difficulties to do notice function.
We have board and comments, if we get notice that someone writes comment, I want to go to that comments in flatlist comments (there can be many comments in…

서효석
- 11
- 1
1
vote
2 answers
React-Native: Getting an error when scrollToIndex using FlatList ref
I am trying to scroll to a particular index on flatlist. I am using the horizontal property of it. I am trying to scroll to a particular index using ref. But I am getting below error.
scrollToIndex should be used in conjunction with getItemLayout or…

Nirmalsinh Rathod
- 5,079
- 4
- 26
- 56
0
votes
0 answers
cdk-virtual-scroll-viewport not working on iOS 15.3 and below Angular 14
Description
After upgrading my Angular application from version 13 to 14, I have noticed that the cdk-virtual-scroll-viewport component no longer works on iOS devices running version 15.3 or earlier. The virtual scrolling feature is not functioning…

ErwinThompsonF
- 1
- 2
0
votes
1 answer
scrollToIndex in primeng virtualscroll table
using primeng virtual scroll table in angular to handle huge set of data [array], here i want to use
scrollToIndex is there any thing like cdk-virtual-scroll-viewport in primeng table, if user clicks on a button I need to scroll to a particular…

Harish
- 104
- 6
0
votes
0 answers
Why is SectionList ref.current always undefined?
I am trying to use the scrollToOffset and scrollToIndex that SectionList provides. However, the SectionList ref I am using is always undefined when using ref.current.
In my class component I have the following:
private sectionListRef:…

pfinferno
- 1,779
- 3
- 34
- 62
0
votes
0 answers
scrollToIndex out of range in react-native-flatlist-slider
Hy! I'm using a react-native-flatslider for static images it's working fine but for images getting for apis is not work properly. It displays me
Invariant Violation: scrollToIndex out of range: item length 0 but minimum is 1
So I search it but not…

Adil Ijaz
- 95
- 11
0
votes
1 answer
How to scroll to index of clicked list item in FlatList
I have a react native FlatList, and when an item from that list is clicked, I would like the page to scroll to the top of that list item (so the top of the item is now at the top of the page/screen). I have been working with scrollToIndex. I added…

Steph
- 147
- 1
- 14
0
votes
1 answer
ReactNative FlatList scrollToIndex issue
I have the following pieces of code in my App.js:
the ref for the main FlatList is set in a useEffect hook as flatListRef
const [flatListRef, setFlatListRef] = useState(null);
...
useEffect(() => {
let mounted = true;
if…

Bogdan
- 372
- 3
- 12
0
votes
1 answer
ReactNative ScrollToIndex too slow
im using react native to create an app for a legal document. i need the document to be scrollable. i rendered it using VirtualizedList.
thing is when i try to use scrollToIndex(index: 'something') performance is too slow.
my list contains about 4000…

Felipe Perarnau
- 3
- 1
0
votes
0 answers
Swift How to Show Most Recent Firebase Messages Without Glitchy Scrolling to Last Index
I am trying to figure how to show just the last messages like instagram and Facebook does when you click on a chat (in my case just one between 2 users).
After I observe all the messages, I then execute this which I think is…

Aza
- 63
- 10
0
votes
2 answers
FlatList scrollToIndex method does not scroll to correct index
Actual Behaviour :
I'm working on a podcasts playing application in react-native and implementing track player in it. When i play a podcast in the player screen, tap on next icon twice and then navigate to the topic screen of the podcast being…

Sahitya Dheram
- 1
- 1
- 1