In order to make a customize-able component, what should I do to pass component as a prop in another component.
I have a header component which may be customized depending on current pages actions.
For example, for autocomplete search, I may have a header component like this:
On another case, for trip search result, I may have a header component like this: 
I want build to a component that will receive a component as a prop and will render it to the current component. What is the best way to do this in react-native way?
