Giter Site home page Giter Site logo

Comments (11)

kolking avatar kolking commented on July 17, 2024 1

To ensure that the rating component does not encounter the performance issues mentioned earlier, I measured the rendering time using the react-native-performance package. I created two screens for comparison; both screens contain a FlatList with 500 items. The "reference screen" renders a static image in place of the rating, while the "measure screen" renders the rating component in every FlatList item. After testing, the average time to render was 24 milliseconds for the "reference screen" and 34 milliseconds for the "measure screen." I believe the 10-millisecond difference is not a significant issue. The code I used for this testing can be found in the test-performance branch.

Screen.Recording.mp4

from react-native-rating.

kolking avatar kolking commented on July 17, 2024

Hello, thanks for writing the issue! It's not enough information to figure out what the problem could be. Is it happens in iOS or Android? Simulator or real device? Expo or bare? Any errors in the console? What navigation package used? How many items in the FlatList? What else are you rendering in the FlatList besides the rating?

from react-native-rating.

ImamJanjua avatar ImamJanjua commented on July 17, 2024

I have created a development build using Expo and tested it on an actual Android device. For navigation purposes, I have implemented React Navigation. The screen features a list of 8 items, each representing a different doctor. Each item in the list includes the rendering of an image, name, doctor's type, numerical rating, and price.

Interestingly, I observed that navigating to the screen without the rating component results in a speed improvement of approximately 2 to 3 seconds compared to when the rating component is included. If necessary, I can provide a video demonstrating the performance difference.

from react-native-rating.

kolking avatar kolking commented on July 17, 2024

Yes please. Also, try to set disabled=true for the rating component. Will that help or stays the same?

from react-native-rating.

ImamJanjua avatar ImamJanjua commented on July 17, 2024

Its stays the same

from react-native-rating.

ImamJanjua avatar ImamJanjua commented on July 17, 2024

please tell me when u got something

from react-native-rating.

kolking avatar kolking commented on July 17, 2024

Sure, will let you know. Btw, could you provide the video demonstration you've mentioned above?

from react-native-rating.

ImamJanjua avatar ImamJanjua commented on July 17, 2024

screen-20240116-161032.3.mp4

In the upper once, I am using your package and in the bottom once my own Implantation.

from react-native-rating.

kolking avatar kolking commented on July 17, 2024

Hmm... To be honest, I don't see a big difference between top / bottom tiles in the video. I looks like there's approximately the same delay after pressing the tile to display the list. At least, I definitely don't see the 2-3 seconds delay that you've mentioned before.

from react-native-rating.

ImamJanjua avatar ImamJanjua commented on July 17, 2024

Maybe its not 3 second but still very noticable. Especially for the user.

from react-native-rating.

kolking avatar kolking commented on July 17, 2024

I've just published v1.2.0, could you try and check is it better or not? During testing please make sure you set disabled=true for the Rating component and please use "release" (not "debug") build.

from react-native-rating.

Related Issues (8)

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.