Create a static library with React dependency
I wrote a custom module for the company, and you can view my documentation. This custom module have inner framework and I link this framework to the main project. In your custom_modulem do you have package.json with this?
"peerDependencies": { "react": "16.8.3", "react-native": "0.59.4" }