title: singleton object in react native
body: <p>I'm new in react native.I want store multiple small small strings to common singleton object class and want to access it from singleton object for all component. Can anyone help me singleton object implementation for react native.</p>
  
  <p>Ex </p>
  
  <p>Component 1 -- Login button -- >> success --> need to store userID into singleton object.</p>
  
  <p>Component 2 --> get stored userID from singleton object. How can i implement it.</p>