The Canary Islands are technically part of Africa, however, they are considered European. If you have flown to the Canary Islands from the US, then it means you have officially entered the EU and Spain. Just as it would if you landed in Madrid.