Great walkthrough, really appreciate it! There is one small bug though at 22:00, when using the useAnimatedStyle hook inside the map function, at least for me it gives the 'Rendered fewer hooks than expected' error. I'm implementing it into a larger application where one can remove images from the array so maybe that's why it shows up on my end but runs fine in this example. Good luck out there coding everybody!
In Android it is only shows one flat list item in the screen (not showing previous and after items) and in the ios simulator iPhone x it works fine but in iPhone 8 gap there is no gap between flat list items
Set "removeClipedSubviews" to false in your component like this This will set the cards to render even they are off the screen. (CAUTION: Only do this if the slider has only a few items (cards))
Great work man! Thanks for that.
Your demos are great, but a link to repo with the finished code would be a great addition?
Great tutorial, as always! 👏👏
Great walkthrough, really appreciate it! There is one small bug though at 22:00, when using the useAnimatedStyle hook inside the map function, at least for me it gives the 'Rendered fewer hooks than expected' error. I'm implementing it into a larger application where one can remove images from the array so maybe that's why it shows up on my end but runs fine in this example. Good luck out there coding everybody!
Excelente tutorial amigo
Very nice Pradip ji 🙏🏻
Thanks 🙏
Would you mind providing us with the project's source code via the GitHub link?
Can you try this method with API data? Im my case i have errors with hooks calls
hello from France, do u have the repo of the projects pls
Can you please make a video on how to do authentication in expo router
Thanks for the suggestion, I'll definitely create a tutorial on this topic soon.
Please also include jwts storing and renewing jwts when jwt expires
@@itzpradip yes Please do this " also include jwts storing and renewing jwts when jwt expires" how to load app based on the token
In Android it is only shows one flat list item in the screen (not showing previous and after items) and in the ios simulator iPhone x it works fine but in iPhone 8 gap there is no gap between flat list items
Solution for this:
(
)}
horizontal
showsHorizontalScrollIndicator={false}
pagingEnabled
onScroll={OnScrollHandler}
scrollEventThrottle={16}
viewabilityConfigCallbackPairs={viewabilityConfigCallbackPairs.current}
onEndReached={() => setData([...data, ...itemList])}
onEndReachedThreshold={0.5}
onScrollBeginDrag={() => {
setIsAutoPlay(false)
}}
onScrollEndDrag={() => {
setIsAutoPlay(true)
}}
removeClippedSubviews={false}
getItemLayout={(data, index) => ({
length: width,
offset: width * index,
index,
})}
/>
Set "removeClipedSubviews" to false in your component like this
This will set the cards to render even they are off the screen. (CAUTION: Only do this if the slider has only a few items (cards))
@@Patanahikahakahaseaajatehai thank you 👏
Did the below solution work for you? I am still getting a single card
@@Patanahikahakahaseaajatehai Worked for me. Thank you
did u find the solution for the pagination animation
change this: scrollX.value, to this: scrollX.value % (items.length * screenWidth), under const dotWidth = interpolate( at pagination.tsx
please sir github code
Niceeeeeeeeeeeeeeee, link for git this man?