How can I make a custom react native camera package that access native camera from app?

The package should be written in react native and that has to work in both ios and android. Can’t use existing third party libraries because of some concerns. Should I have to write codes in native language as well ?

I have went through source code of different third party libraries and still confused.