title: How to access the state of one component from the other?
body: <p>In my react-native application i have a input form component and a button component. I want to send the login information to my server when user presses the button but the data is present in the form component.</p>
  
  <p>How can i access the state of the form from the button component.</p>