For example

HNO2 + H20 ----> H30+ NO2-

I don't understand how the hydronium ions form. How do I figure out if a OH- or H30+ will form from the reactant side.