This is what osmeta did (bought by Facebook). I believe it shipped in whatsapp and messenger (see https://twitter.com/steipete/status/1007428817579859969, https://news.ycombinator.com/item?id=11599617) but later fell out of favor and was replaced with react native and pure native rewrites.