React Native encrypt a message with publicKey. Convert encrypted to base64

I need to do, for react native, encryption of a message.
I tried several libraries, but none worked.
(
JSEncrypt (not supported)
NODERSA (didn’t work)
expo-crypto (I couldn’t set the public key because I have my key)
react-native-rsa (it didn’t work either because of the key)
)

I wonder if anyone knows a way to do this!?


I have the public key and the message.
I need to encrypt the message with the public key and pass it to base64.