Skip to content

Commit

Permalink
chore(project): update blacklist for RN0.39
Browse files Browse the repository at this point in the history
  • Loading branch information
seavan committed Dec 19, 2016
1 parent 6346b38 commit d9bc83e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/lib/icebear.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import rnFileStream from './rn-file-stream';

global.navigator = global.navigator || {};
global.navigator.userAgent = global.navigator.userAgent || 'react-native';
global.cryptoShim = require('react-native-crypto');

const Promise = require('bluebird');

Expand Down
4 changes: 2 additions & 2 deletions rn-cli.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var blacklist = require('react-native/packager/blacklist');

var config = {
getBlacklistRE(platform) {
return blacklist(platform, [
getBlacklistRE() {
return blacklist([
/app\/lib\/peerio-icebear\/node_modules\/.*/
]);
}
Expand Down
3 changes: 3 additions & 0 deletions shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ global.WebSocket = function(url) {
return r;
};

const cryptoShim = require('react-native-crypto');
global.cryptoShim = cryptoShim;

// global.WebSocket = global.originalWebSocket;
// console.log('shim.js binaryType: ', ws.binaryType);
// console.log('shim.js: ', global.originalWebSocket);

0 comments on commit d9bc83e

Please sign in to comment.