We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f787609 commit 36dc5c5Copy full SHA for 36dc5c5
README.md
@@ -35,7 +35,7 @@ index.js
35
import FetchMock from 'react-native-fetch-mock';
36
37
if (__dev__) {
38
- global.fetch = new FetchMock(require('path/to/mocks/directory'));
+ global.fetch = new FetchMock(require('path/to/mocks/directory')).fetch;
39
}
40
41
// if __dev__ is true, it will back the data you defined in mock directory
0 commit comments