Create a component Library

Hello guys,
How do i create a component library publishable to npm and yarn, I am finding it difficult to get a guide to do this. There’s no where in the docs that explains creating a third party library for expo, android and ios. I would so much appreciate your help.