As a first step towards replacing the Reanimated 1 syntax in LoggedOutModal with Reanimated 2 syntax (ENG-8146), I'm converting the class component to a function component.
This diff makes minimal changes. In a later diff I'll make some improvements to memoization now that we're using a function component and can use React.useMemo and friends.
Depends on D12190