Hi I am new to React native and React native navigation. I am using react navigation screen to show details about users. I have around 100 different users. I am navigating to the next user by using push
instead of navigate
as I have to pass different props (same screen, different parameters).
navigation.push('UserDetails', {id: id + 1})
This method is mentioned in the documentation and this thread:
React-Navigation go to same route with different params
However, as there are a lot of users, this ends up creating a lot of screens on the stack and creates performance issues and crashes. Is there any other way to implement this?