Skip to content

Commit

Permalink
bindOnLoad Headers 兼容 react-native-web
Browse files Browse the repository at this point in the history
  • Loading branch information
yinhangfeng committed Jul 12, 2018
1 parent f19d43b commit ad1aed2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/adapters/bindOnLoad.native.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// react-native react-native-web
// react-native
module.exports = function(xhr, callback) {
xhr.onload = callback;
};
6 changes: 6 additions & 0 deletions lib/adapters/bindOnLoad.web.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

// react-native-web
module.exports = function(xhr, callback) {
xhr.onload = callback;
};
2 changes: 1 addition & 1 deletion lib/fetch/Headers.native.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// react-native react-native-web
// react-native
module.exports = Headers;
2 changes: 2 additions & 0 deletions lib/fetch/Headers.web.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// react-native-web
module.exports = Headers;

0 comments on commit ad1aed2

Please sign in to comment.