I think Chinese people are really friendly to foreigners and the only thing foreigners shouldn't do is be rude, which I think is common everywhere. However, maybe you should not say thanks too much to Chinese friends because, when Chinese are friends, they think it's natural to help each other. If you always say thanks, it implies that you don't consider him/her as your friend.