Equivalent version of SHA256 ComputeHash (from C#) for React Native/JS

I’m trying to build an equivalent version of SHA256 ComputeHash (from C#, the EXACT same output from the below sample), to React Native/JavaScript.
This is the following C#:

public static string Hash(string input)
    if (string.IsNullOrWhiteSpace(input)) return "";

    using (SHA256 hasher = SHA256.Create())
        // Convert the input string to a byte array and compute the hash.
        byte[] data = hasher.ComputeHash(Encoding.Unicode.GetBytes(input));

        // Create a new Stringbuilder to collect the bytes
        // and create a string.
        StringBuilder sBuilder = new StringBuilder();

        // Loop through each byte of the hashed data 
        // and format each one as a hexadecimal string.
        for (int i = 0; i < data.Length; i++)

        // Return the hexadecimal string.
        return $"0x{sBuilder.ToString().ToLower()}";

I tried the following, but it doesn’t generate the same Hash:

import * as Crypto from 'expo-crypto';

const hash = await Crypto.digestStringAsync(

Would anyone know, either what’s wrong with the JavaScript, or if there is an exact equivalent version of the C# one?

Source: React natvie