title: Passing component as a prop in react native
body: <p>In order to make a customize-able component, what should I do to pass component as a prop in another component.</p>
  
  <p>I have a header component which may be customized depending on current pages actions. </p>
  
  <p>For example, for autocomplete search, I may have a header component like this:</p>
  
  <p><a href="https://i.stack.imgur.com/2gwCl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2gwCl.png" alt="enter image description here"></a></p>
  
  <p>On another case, for trip search result, I may have a header component like this: <a href="https://i.stack.imgur.com/dRt2W.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dRt2W.png" alt="enter image description here"></a></p>
  
  <p>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? </p>