Questions tagged [react-native-scrollview]

ScrollView is React Native component equivalent to Android/iOS ScrollView, that allows the view hierarchy placed within it to be scrolled

Documentation: here

232 questions
0
votes
1 answer

stop ScrollView from scrolling

I want to stop a ScrollView from scrolling in React Native. I don't want to completely disable it, I just want it to stop scrolling at a specific point, so that I can scroll it again afterwards. Since the scrolling momentum still persists…
0
votes
0 answers

React Native: contentOffset y value from onScroll nativeEvent inaccurate

I have a with the following structure: const [headerHeight, setHeaderHeight] = useState(undefined) ... { console.log(nativeEvent.contentOffset.y) }}>
0
votes
0 answers

How can I make scrollview horizontal and vertical scroll in React Native

I need to make ScrollView horizontal and vertical for my tab component. I am showing films for my first tab. So someone can scroll bottom to see the rest of films. Since these movies are in a tab, I want the tab to change when someone swipes to the…
0
votes
0 answers

Displaying Images from an array of URLs

I'm trying to get some images from firebase storage and display it in a gallery like view. This is how I retrieved the URLs of uploaded images from firebase: function listAll() :{ url: string; }[]{ const storageRef = firebase.storage().ref(); …
0
votes
1 answer

snapToAlignment center not working in first render

I'm working on something like instagram snap scrolling. The User Card should be centered (One card on each scroll). } keyExtractor={item => item.id} …
0
votes
1 answer

How to scroll to image[x] in ScrollView at the first time open screen?

How to scroll to image[x] in ScrollView at the first time component load? I want when we open this screen, ScrollView will scroll to the 4th image. This is my demo export default function App() { const scrollX = useRef(new Animated.Value(0)); …
Zuet
  • 559
  • 6
  • 23
0
votes
1 answer

Flatlist not scrolling react native

for some reason my flatlist is not scrolling and I'm not sure why. Would love any tips! Here is the code for the flatlist: return ( Explore
0
votes
1 answer

scrollview and flatlist override loading view

I have got flatlist inside scrollview and its working fine, but both going over the loading view so I got blank view while first loading which contain both of them while first run loading. I didn't find any questions on it.
0
votes
1 answer

Body become Scrollable in React Native

i have small issue with scrollview. i want to the title become sticky and the after the title means the messageBody become scrollable. i have tried below one for this implementation. HelpComponentContainer:---
0
votes
1 answer

How can I scroll through a ScrollView from anywhere on the screen in react native?

I built a carousel in react native. Now I want to be able to scroll through it even when my finger is not placed inside it. How can I achieve this?
user16351905
0
votes
0 answers

react native scroll to selected index or item

I created top tabs with scroll view(image below). I want when user click to week 4 or next week which is hidden currently it will scroll to that week. I tried it but it's not working properly Can anyone tell me how to do that or there is any package…
0
votes
2 answers

Scrollview cannot scroll to bottom with keyboard in react native

Scrollview scrolls to the bottom normally but when I touch the TextInput and the keyboard pops up, it scrolls only a very short distance and I am not able to look at the content below. Just focus on android as of…
Karan
  • 141
  • 2
  • 13
0
votes
1 answer

What size ScrollView starts to affect performance (React Native)

I'm trying to implement a scroll animation on my FlatList using react-native-reanimated2 but I'm having trouble doing so. However, I am able to implement the animation using a ScrollView. The list is of a fixed size (no more than 20 items). I was…
KraveXL
  • 305
  • 3
  • 12
0
votes
1 answer

ScrollView height does not update when deleting items inside

I have a ScrollView in my app which can contain enough content where I need to scroll to get at the bottom. However if I scroll to the bottom and then delete some items, while the content inside the ScrollView gets smaller then ScrollView height…
0
votes
2 answers

How i can disable Scroll on Content inside of two scrollview

I have Question is i want to disable scroll of one item from inside two scroll view like as ////Horizontal ScrollView ////Vertical ScrollView //// View 1 …
Mirza Hayat
  • 284
  • 5
  • 11