mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-10 21:12:08 +00:00
84723245ce
Linking.removeEventListener() was deprecated in react-native@0.65 Fix #2507
16 lines
386 B
JavaScript
16 lines
386 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const pages = fs
|
|
.readdirSync(path.resolve(__dirname, 'pages'), { withFileTypes: true })
|
|
.filter((dirent) => dirent.isDirectory())
|
|
.map((dirent) => dirent.name);
|
|
|
|
module.exports = {
|
|
env: { pages },
|
|
webpack: (config, options) => {
|
|
config.resolve.alias['react-native'] = 'react-native-web';
|
|
return config;
|
|
}
|
|
};
|