title: React-Native 0.57: 'Can't find variable: require' with metro-react-native-babel-preset
body: <p>I started a multiplatform project with code sharing between react-native and react-js.
  So I have a webpack setup for browser/Electron, and a react-native 0.57 setup for Android/iOS.
  The problem I'm having right now is the following:
  <a href="https://i.stack.imgur.com/YK4vD.png" rel="nofollow noreferrer">Can't find variable: require</a></p>
  
  <p>It might be a very bald question, but do I need anything else? I read, that React-native should support require by itself, but couldn't find anything related to this setup yet.</p>
  
  <p><code>.babelrc
  {"presets": ["module:metro-react-native-babel-preset"]}</code></p>
  
  <p>I'm also using @babel/polyfill and @babel/runtime on browser side, but I wonder if they would interfere.</p>