Pokemon Refresh is a new option is Pokemon Sun and Moon that essentially replaces Pokemon Amie. This option appears the moment you get your first Pokemon. It allows you to groom your Pokemon and feed it Poke Beans.
There are three stats in Pokemon Refresh. Click the switch Pokemon button on the lower right side of the touch screen to see each Pokemon’s affection, fullness, and enjoyment.
Pokemon can be groomed after winning a battle as well. Press the Y button at the end of the battle to use grooming tools, feed, and pet your Pokemon. Grooming your Pokemon can even heal status conditions that would normally persist after battle.