React-Native 0.57: 'Can't find variable: require' with metro-react-native-babel-preset
问题 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: Can't find variable: require 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. .babelrc {"presets": ["module:metro-react-native-babel