Skip to content

Commit 2c15844

Browse files
alexanderwallinLeoNatan
authored andcommitted
Corrects React Native version specifier in Mocking (wix#1650)
1 parent ffde603 commit 2c15844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Guide.Mocking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This replacement mechanism provides a lot of flexibility to change implementatio
2121

2222
#### Configuration
2323
0. For RN < 0.55, setup `react-native-repackager` in your library.
24-
1. For case 0.55 <= RN < 0.59 create a file called `rn-cli.config.js` in the root folder. If you use RN > 0.59 (which in turn uses Metro with breaking changes introduced in 0.43 - https://github.com/facebook/metro/releases/tag/v0.43.0) file should have name `metro.config.js` or `metro.config.json` (or define metro field in `package.json`) to root dir. Then set up `resolver.sourceExts` to prioritize any given source extension over the default one:
24+
1. For case 0.55 <= RN < 0.59 create a file called `rn-cli.config.js` in the root folder. If you use RN >= 0.59 (which in turn uses Metro with breaking changes introduced in 0.43 - https://github.com/facebook/metro/releases/tag/v0.43.0) file should have name `metro.config.js` or `metro.config.json` (or define metro field in `package.json`) to root dir. Then set up `resolver.sourceExts` to prioritize any given source extension over the default one:
2525

2626
```js
2727
const defaultSourceExts = require('metro-config/src/defaults/defaults').sourceExts

0 commit comments

Comments
 (0)