Whatsapp with custom rom

Does anybody know how can i install un1ca one ui 6.1 and still use whatsapp?I tried magisk but it doesn t work