[native] Add some memoization to UnreadDot
Summary: Based on profiling, rendering UnreadDot takes ~0.8ms. That alone is pretty insignificant but multipled by 5 re-renders (in the "navigate to thread w/ varun scenario) and 29 instances of UnreadDot that adds up to ~116ms. Still not a lot, but pretty low effort to add memoization.
Test Plan:
Continues to look as expected. Will do before/after profiling screenshot at end of the stack (Setting up profiler and doing multiple runs can be kind of slow/require restarting metro/etc/etc.) showing before/after.
UnreadDot not re-rendering when ChatThreadList re-renders:
Reviewers: ginsu, rohan, tomek
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D9070