Git Product home page Git Product logo

Comments (8)

demchenkoalex avatar demchenkoalex commented on June 14, 2024 3

Thanks, we will consider adding that!

from react-native-chat-ui.

demchenkoalex avatar demchenkoalex commented on June 14, 2024 1

As I understood itemHeight is required for this package, assuming all performance improvements are basically from the fact that items are of the same height. We have very dynamic items (messages, absolutely random height), and calculating text heights to supply to this package IMO will negate all performance improvements. Feel free to correct me if I missed something.

from react-native-chat-ui.

hirbod avatar hirbod commented on June 14, 2024 1

@demchenkoalex Shopify just released FlashList - a super fast RLV implementation. Upgrading is actually super straight forward. Is this library still maintained and would you make it possible to define a scrollable?

from react-native-chat-ui.

demchenkoalex avatar demchenkoalex commented on June 14, 2024 1

Hey @hirbod I will definitely use that, atm I am actively developing Flutter counterpart of the lib, but this will be revived at some point as well with tons of features we have on Flutter already + this. Can't give an ETA now, but I am looking forward to bringing back React Native up to speed.

from react-native-chat-ui.

hirbod avatar hirbod commented on June 14, 2024

react-native-big-list is indeed not the right package for this. But RecyclerList is a bit painful to setup but is way faster than FlatList. But I would keep my eyes open for the upcoming "react-native-vision-list", which might be a game changer soon :)

from react-native-chat-ui.

demchenkoalex avatar demchenkoalex commented on June 14, 2024

I always thought game changer will be Fabric and Turbo Modules :D 🤞 this year. And no dependencies needed :)

from react-native-chat-ui.

hirbod avatar hirbod commented on June 14, 2024

React Native Vision List will be some JSI magic ;). I am also waiting patiently for fabric and turbo modules to get rid of these painful lists in RN

from react-native-chat-ui.

hirbod avatar hirbod commented on June 14, 2024

Hi @demchenkoalex, just FYI, I forked your project yesterday and just swapped everything related from FlatList to FlashList, and the results are incredibly great, specially on Android. I did it not do it in a usable manner for this library, just in a quick one for my project, so I can't provide a PR but I just wanted to let you know that it is really fast and works great! In order for this to be usable in the future, I would recommend to export a prop to provide a scrollable yourself or for a prop to switch the implementation.

I would also forward the ref to have access to the list and changed some stuff related to LayoutAnimation, all in all it was done in like 25 minutes.

Upload.from.GitHub.for.iOS.MOV

from react-native-chat-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.