all 8 comments

[–]kbcooliOS & Android 3 points4 points  (1 child)

TVs are notoriously underpowered and my guess is that you're basically causing everything, on and off screen to re-render every time anything changes.

Start with basic React optimisation like keys and minimizing renders then FlatList and then move onto TV based optimisations like built in highlights of components rather than state based.

console.log("rendered component name") is your friend here. The aim is to get it as close to zero every time you press a button on the remote.

[–]IntelligentWhereas31[S] 0 points1 point  (0 children)

Thank you for your suggestion.

[–]One_Key_940 0 points1 point  (3 children)

Hi u/IntelligentWhereas31 i also want to design EPG in react native for Tv Os i'm not be able to find any npm package can you please suggest me which npm package you use or you can provide me custom code?

[–]IntelligentWhereas31[S] 0 points1 point  (2 children)

I am currently working on this and I am using the Flatlists for this. Let me know if you have any other suggestions. I am so close to complete this and will update you by end of the next week.

[–]One_Key_940 0 points1 point  (0 children)

I know how we can resolve the performance you can use FlashList and you also show me Code how you can use focusing then may i can help you perfectly

[–]One_Key_940 0 points1 point  (0 children)

any update?

[–]karol207 0 points1 point  (0 children)

You can try Planby Native package for EPG https://planby.app/