My four year old, three pound hairy child had frequently thrown up yellow foam-usually in the morning, but always when it had been a while since eating. Two different vets told me that Yorkies have "sensitive" stomachs-rather vague! What matters is what works. We rarely have this problem with a little prevention. I give Abby a little sugar water or Karo to prevent this when I know she's not eaten in a while or if she throws up the foam I wait five or ten minutes until I think she's done and then give her a little sugar water. It helps rinse the burning bile out of the esophagus and the glucose will help pick up the appetite since FOOD is the best thing to absorb the stomach acid and gives it something to work on. She is always right back to feeling herself afterwards! She has a metabolic panel done every year so we do still keep watch on her kidney and liver functions-so far normal.
Yorkies-even full grown-are prone to low blood sugar which makes them feel nauseous and so they don't eat~which makes the blood sugar lower=vicious cycle. Unless your Yorkie has a hearty appetite and eats kibble throughout the day...make sure he/she eats something-even just a treat-frequently.