Performance advice needed: Infinite scroll feed with dynamic-height Rive cards in React Native
Hello everyone,
I am planning to build a smartphone app with an infinite scrolling feed, similar to Instagram or Facebook.
Here is the key architectural concept of the app:
Feed Structure: The feed scrolls infinitely based on incoming data. Each item is a card containing a live, data-driven Rive animation.
Dynamic Layout: The height of each card varies dynamically depending on the amount of content inside it.
UI Layout: There is a fixed top status bar and a fixed functional sidebar on the right.
Advanced Animation: If possible, I would love to implement an effect where an element "pops out" from the scrolling feed item and smoothly animates/transitions into the fixed top or right UI areas.
My biggest concern is rendering performance and scroll jank. Since the feed scrolls infinitely and the animations must react in real-time to state data, I am worried about potential lag.
I am currently considering React Native + Rive as my tech stack, and I would love to get your insights on the following questions:
1. Is it possible to implement this entire scrolling feed using just a single .riv file across the tech stack? (e.g., managing the entire feed state and layout within one master Rive artboard)
2. Or should I use React Native’s FlatList (or FlashList) and render individual .riv files for each card, injecting different data into each instance? If this is the better approach, does rive-react-native support the necessary virtualization, memory recycling, and unmounting optimizations to prevent memory leaks and crashes during infinite scrolls? Specifically, I am wondering if Rive instances will play nice with FlatList's built-in features like Infinite Scroll Prefetching and Pre-rendering when users scroll fast.
3. Is this level of performance too demanding for React Native? Should I consider switching to Flutter, or going fully native (Swift/Kotlin) to achieve a buttery-smooth 60/120fps experience for this specific use case?
I would greatly appreciate any advice, architectural tips, or experiences you could share. Thank you so much!