The invention provides certain thiazole-substituted aminoheteroaryl compounds of the Formula (I) (I), or pharmaceutically acceptable salts thereof, wherein ring R1, R2, R3, R4, ring A, and the subscripts n1, n2, and r are as defined herein. The invention also provides pharmaceutical compositions comprising such compounds, and methods of using the compounds for treating diseases or conditions mediated by Spleen Tyrosine Kinase (Syk).