Skip to content

Commit 36dc5c5

Browse files
committed
fix error example
1 parent f787609 commit 36dc5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ index.js
3535
import FetchMock from 'react-native-fetch-mock';
3636
3737
if (__dev__) {
38-
global.fetch = new FetchMock(require('path/to/mocks/directory'));
38+
global.fetch = new FetchMock(require('path/to/mocks/directory')).fetch;
3939
}
4040
4141
// if __dev__ is true, it will back the data you defined in mock directory

0 commit comments

Comments
 (0)