Check out example codes for "Unsupported private class . This class is visible to consumers via". It will help you in understanding the concepts better.

Code Example 1

# Error Unsupported private class fooComponent. This class is visible to consumers via barModule
# In angular 9 it complains becuase it wants you to add it to the public api 
# Add your component to public_api.ts
export * from './lib/components/some-me/some-me.component';

Learn ReactJs, React Native from akashmittal.com