Does rihanna write her on music?

No, most of Rihanna's songs were written by a man named Max Martin, who has also written for Taylor Swift and the Backstreet Boys among others.