I don't doubt danios might eat shrimp but they don't really have that large of a mouth. Generally, fish eat things that fit in their mouths, and most of the danios are surface feeders, rather than bottom feeders. Which is not to say they won't look for food on the bottom if they are hungry, but generally, they prefer to feed from the surface.
I've kept Snowball shrimp, the white form of cherry shrimp, quite successfully, in a 29G tank, heavily planted, lots of wood and rock, and lots of fish. Kuhli loaches, cories, Ghost shrimp, Snowballs, Blue Claw Whisker shrimp, Fan shrimp, Zebra danios, Kyathit danios. Yeah, it was overstocked, but I like it that way and don't mind doing extra maintenance to cope with it.
While the Ghost and Whisker shrimp certainly did eat some of the baby Snowballs, the fish pretty much ignored them. I imagine a few loaches snacked on a few baby shrimp too. And I did have one Zebra danio manage to get into a breeding net full of baby shrimp, but she wasn't in there long, before I caught her.
Then I then covered the net to keep the predators out. I thought I'd lost most of the baby Snowballs, but learned a month or so later that most survived and climbed out of the breeder net before I covered it up. They appeared once they grew a bit and from then on, I saw them all the time, swimming around, feeding, whatever shrimp do.
I did regular, fair size water changes, gravel vacs, etc., and the shrimp did not seem to mind. I had a thriving, growing colony of Snowballs in a few months time, despite all the potential predators, the filter intake that did not have a prefilter at the time and water changes, etc.
You may have had fish eat shrimp, or you may have lost some shrimp to stress or illness. Cherry shrimp can die for a variety of reasons, but typically they are pretty hardy little critters.
Amano shrimp, just so you'll know, are even harder to see than cherries, in a planted tank. They blend in, and while they are larger, if you only have a few, they can also seem to vanish and rarely be seen. If you add a good number of them though, it helps, as at least a few will be in view for you to watch. You can do the same with cherries too, add a fair number of them.
And within reason, the younger they are, the better they will adapt to new tank parameters. Adult shrimp don't travel as well, and are much more likely to die of stress changing tanks than baby shrimp are. If the shrimp you bought were adults, that might explain your losses right there.