DEV Community

Anaturuchi
Anaturuchi

Posted on

Answer: How To Pass Style Props into a reusable component in React Native for more flexible styling in the future

The Goal To create a reusable react component and have the flexibility to style any part of the component in the future.

How to achieve this:

  1. Create the reusable component using const or function.
  2. Pass 'props' as a parameter to the component, whether functional or const.
  3. Give the components of…

Top comments (0)