react native measurelayout. Since the ref isn't attached t