As asked.
I think Swype works for both (at least I’m fairly sure I remember using it on Android before my iPhone). It’s pretty simple and I found it reliable and accurate for the most part.