You've Been Building React Native Lists Wrong All Along

  Рет қаралды 12,755

Simon Grimm

Simon Grimm

Күн бұрын

Пікірлер: 38
@galaxies_dev
@galaxies_dev 2 ай бұрын
⚡ Stay on top of Expo commands with my new cheat sheet: download.galaxies.dev/cheat-sheet
@samuelscheit
@samuelscheit 2 ай бұрын
Thanks for the shoutout :) I'm currently working on publishing the react-native-skia-list package and also making it easier to write components
@galaxies_dev
@galaxies_dev 2 ай бұрын
Wow that would be awesome!
@szymcioxd
@szymcioxd 2 ай бұрын
It's a pleasant surprise to see my "Don't re-render all FlatList items" blog post in your video. 🙇‍♂ I'm subscribing your channel since a long time and your videos help me keep up to date. I'm glad that my work also can be a part of it and help others. Thanks! 🚀
@galaxies_dev
@galaxies_dev 2 ай бұрын
Thank you for the great article!!
@surajmohanty528
@surajmohanty528 2 ай бұрын
Looks like onReachEnd is calling multiple times. Is there any workaround for this?
@mldddd
@mldddd 2 ай бұрын
Hey Szymon, thanks for the cool article! Don't know where to react so i'll do it here. Normalization is a cool partern to know that can help in this situation, but I would like to point out that it's not the only solution: Here, to prevent perf issues, you can keep the data as is, but rather memoize the Items (and their props like setValue in your example). This way, the component containing the Flatlist (and its data) will re-render, renderItem will be called for each item, BUT the items that haven't changed will not re-render (it's that costly part we need to prevent). I believe that this memoization/optim will also be automatically done by the new React Compiler which should make this "Flatlist issue" disappear!
@vuc__vuc
@vuc__vuc 2 ай бұрын
i had the size problem with the flashlist while building a manga reader app... i had to build my own scrollable component for my use case
@SatoshiNakamono
@SatoshiNakamono 2 ай бұрын
I’m also building the manga app. Can I contact you?
@yuvrajcreationz5921
@yuvrajcreationz5921 2 ай бұрын
Just curious to know, how do you guys include mangas in ur apps? Like download them first and then insert locally or is there a free api available 🤔?
@Dik131WZD
@Dik131WZD 2 ай бұрын
What is your way staying informed about actual best practices in RN world?
@galaxies_dev
@galaxies_dev 2 ай бұрын
Following a bunch of resources, mailing lists and channels!
@chfaaizmehmood7709
@chfaaizmehmood7709 2 ай бұрын
Can we get a code example of flashlist ?
@madmaxdev
@madmaxdev 2 ай бұрын
Been using flashlist from the beginning.
@galaxies_dev
@galaxies_dev 2 ай бұрын
Good idead
@CeleChaudary
@CeleChaudary 2 ай бұрын
Awesome!
@galaxies_dev
@galaxies_dev 2 ай бұрын
Thanks!
@mshayat4974
@mshayat4974 2 ай бұрын
Thanks for the information Simon. What if we compare this with flutter...!!!!! which will give more performance?
@КириллЛ-ы8ш
@КириллЛ-ы8ш 2 ай бұрын
Flutter of course. In Flutter we just use build-in ListView, we don’t worry about meomezation, cells to pre-render, amount of view updates and etc. ListView in Flutter just works with 120fps even with complicated cells. Last but not least, when you found what you can do with slivers… it will blow your mind. But Flutter comes with other issues, still not a silver bullet.
@miketaylor253
@miketaylor253 2 ай бұрын
I wonder what alternatives there are available in RN to using JSON for pulling data from the server, which maybe a bit more efficient, gRPC/protobuf possibly?
@ziembajan
@ziembajan 2 ай бұрын
tRPC FTW 💪
@sourabhsingh4515
@sourabhsingh4515 2 ай бұрын
where is your video on the new react native release ??? the bridgeless architecture
@galaxies_dev
@galaxies_dev 2 ай бұрын
Still working on that :D
@sourabhsingh4515
@sourabhsingh4515 2 ай бұрын
@@galaxies_dev Please bring it soon waiting for your video !!!
@sivsovanpanhavorn6296
@sivsovanpanhavorn6296 2 ай бұрын
I have problem with both flatlist and flashlist rendering infinity scroll where data is around 100+
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd 2 ай бұрын
Thank you so much simon
@galaxies_dev
@galaxies_dev 2 ай бұрын
You are welcome!
@Engazan
@Engazan Ай бұрын
i dont use flashlist cuz when i add animations it mess whole app, like white flashbank when screen is mounted ..., and u cant add animations for just flatlist, it apply animations for whole app :/ that strange flashback is with combination with RN Navigation 6, cuz it changes navigation animations
@mottahh4162
@mottahh4162 2 ай бұрын
Flashlist lacks in rtl support
@NotEsc_
@NotEsc_ 2 ай бұрын
Can We Get a Code Example Of FlashList ?
@ngonimugumwa6374
@ngonimugumwa6374 2 ай бұрын
It's nearly exactly the same as Flatlist syntax, but also just check out the documentation, it's pretty great.
@hamamathivha6055
@hamamathivha6055 2 ай бұрын
Used FlatList and then FlatList, but for some reason the scroller gets "stuck" when I switch out elements in the list. I might be doing something super dumb but it's really annoying coz I'm building a super simple one page app. Really considering moving to another framework like flutter for this.
@hamamathivha6055
@hamamathivha6055 2 ай бұрын
Ahh fixed it!
@duttaoindril
@duttaoindril 2 ай бұрын
React Native Skia is just react native rebuilding flutter in js 😂
@galaxies_dev
@galaxies_dev 2 ай бұрын
Skia is widely used not only in Flutter, but yes it's a very performant way.
Can Cursor AI build my React Native App?
18:44
Simon Grimm
Рет қаралды 27 М.
5 React Native Tips to WOW Your Users
16:36
Simon Grimm
Рет қаралды 38 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
React Native vs Flutter - Which should you use?
22:31
Simon Grimm
Рет қаралды 59 М.
Expo SDK 52: DOM, RSC, Router, New Architecture & Packages
17:05
Simon Grimm
Рет қаралды 14 М.
FlashList - make your lists faster now - M. Fořt | React Native EU 2022
22:31
10 Essential React Native Tips Every Developer Must Know
12:07
Simon Grimm
Рет қаралды 22 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 735 М.
Build a Threads Clone with React Native (Convex, Clerk, Sentry, Expo)
6:21:06
React Native just dropped a MASSIVE update
15:06
Mehul - Codedamn
Рет қаралды 73 М.
The time for React Native is NOW
7:38
Simon Grimm
Рет қаралды 35 М.
8 AI Tools I Wish I Tried Sooner
16:10
Futurepedia
Рет қаралды 263 М.
10 Expo Router Tips You Need to Know
18:07
Simon Grimm
Рет қаралды 23 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19