The Zanzibar currency is the same as Tanzania currency; it’s the Tanzanian shilling (TZS). So visiting Zanzibar also require you the same currency as Tanzania so if you have planned a combined trip to national parks of Tanzania and beaches of Zanzibar then make sure to exchange your money for Zanzibar trip too.
There are few established lodges and restaurants in Zanzibar who accepts the US dollar too.