We have a huge React Native(60.5) project with typescript that also includes React Native Web. Because of this reason, we also have lots of reusable components which we use them in screens.
Developers started to change components' logic with their needs. But those changes crash other parts of the app. So I want to;
- Create new project as a component library whose name is CoreComponents
- Move existing components from our to this CoreComponents library
- Import this library in our app and use it(like npm package)
i.e.
import x from 'CoreComponents';
class App extends Component {
render () {
return (
<x>Hello World!</x>
)
}
}
I researched it for 2 days but I couldn't find exact result.
Is it possible to make it?