This feature comes with the latest version of the app for iOS, namely version 2.19.20. To access the new settings, you’ll have to go to Settings, then Account, followed by Privacy. From there, all you have to do is enable Screen Lock.

It’s a very rudimentary implementation of the feature. Messages will still be partially visible via notifications, and they can still be quick-replied to. You also can’t lock individual chats down, but that’s probably not necessary when the entire app is locked. If you’re really into making the most of this, then you’ll probably want to turn off message previews. That way, your messages will be completely under Touch ID or Face ID lockdown. (Source: Apple via 9to5Mac)

WhatsApp For iOS Can Now Be Protected With Face ID and Touch ID - 79