Skip to content

Commit 844fce9

Browse files
docs: mention metro.config.js in Troubleshooting
1 parent 9655d3a commit 844fce9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ module.exports = {
326326

327327
```
328328

329+
If the project has a `metro.config.js` file, it will be picked up instead of `rn-cli.config.js` on newer versions of `react-native`. If that's the case, the `resolver` block has to be added to the `metro.config.js` file instead.
330+
329331
These are the contents of `rn-cli.config.js` if `react-native < v0.57`:
330332
```js
331333
const blacklist = require('metro/src/blacklist');

0 commit comments

Comments
 (0)