Component Naming in React Native

i was sent a file for a project and noticed a different kind of component name which got me confuse, since i am use to component being named as example space.js or index.js but this is different

It’s just a file, can be called anything. Whoever wrote the code just decided to make it obvious that that file was for a component by suffixing the name with .component (vs. a file that included styles for the component which they’ve suffixed with .styles)

1 Like

thanks … well understood

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.