title: React Native: how to simulate onBlur and onFocus event for View
body: <p>In React Native, only <code>TextInput</code> has <code>onFocus</code> and <code>onBlur</code> event listener. However, we would like to simulate this effect on a <code>View</code>.</p>
  
  <p>Here is what we try to achieve. There is a <code>View</code> on the screen. It gains "focus" when user taps on it and is hightlighted. We want to detect that user taps outside the <code>View</code>, so that we can "blur" the <code>View</code>, that is, remove the highlight.</p>
  
  <p>I know we can use <code>focus</code> method (<a href="https://facebook.github.io/react-native/docs/nativemethodsmixin.html#focus" rel="noreferrer">https://facebook.github.io/react-native/docs/nativemethodsmixin.html#focus</a>) to request focus for the <code>View</code>. The problem is that I don't know how to detect that user presses outside the <code>View</code>.</p>