Skip to content

Instantly share code, notes, and snippets.

View liamjones's full-sized avatar

Liam Jones liamjones

View GitHub Profile
@liamjones
liamjones / realm+10.8.0.patch
Created October 14, 2021 14:29
Patch to fix `Realm is not defined` in Realm JS 10.5.0+
Patch Realm to fix 'Realm is not defined' issues in Jest and Chrome Remote Debugger, see https://github.com/realm/realm-js/pull/3748 for more info
Formatting below is deliberately bad (e.g. not indenting the function) to minimise the patch and make it easier to understand if it needs altering for a later version of Realm
diff --git a/node_modules/realm/lib/collection-methods.js b/node_modules/realm/lib/collection-methods.js
index 0e1e395..0c52173 100644
--- a/node_modules/realm/lib/collection-methods.js
+++ b/node_modules/realm/lib/collection-methods.js
@@ -18,6 +18,10 @@
@liamjones
liamjones / d3099fb3ef9e44afa15f34d34d3c1607-symbolicated.crash
Created December 5, 2020 17:34
RNFirebase "Call must be made on main thread"
OS Version: iOS 14.2 (18B92)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Crashed Thread: 17
Application Specific Information:
Call must be made on main thread
Thread 17 Crashed:
@liamjones
liamjones / parse5+3.0.3.patch
Created October 18, 2018 07:48
Removal of streaming related exports for RN use
diff --git a/node_modules/parse5/lib/index.js b/node_modules/parse5/lib/index.js
index 9472a62..c7c232e 100644
--- a/node_modules/parse5/lib/index.js
+++ b/node_modules/parse5/lib/index.js
@@ -35,10 +35,3 @@ exports.treeAdapters = {
default: require('./tree_adapters/default'),
htmlparser2: require('./tree_adapters/htmlparser2')
};
-
-