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.
Not clear why this was defined separately. Maybe it was used in multiple places previously?
Doing this as a separate diff because it's a simple move, to make later diffs easier to review.
Depends on D12192