Messenger seems to be React Native evident by RCTView everywhere. It also uses NSView instead of UIView.
WhatsApp seems to use UIView, but I couldn't find evidence of SwiftUI, so am assuming its just a UIKit app.
There are some very similar UI components to the mobile app, so I am guessing they want to unify as much as they can between the two codebases.
WhatsApp Windows seems to be a native Windows app.