Skip to content

Commit

Permalink
fix(react-native:react-native-os): hack: patching the very old packag…
Browse files Browse the repository at this point in the history
…e to ignore runtime exception

fix #219
  • Loading branch information
vhqtvn committed Feb 9, 2023
1 parent 8959069 commit e486811
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ci/post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ hack([
return s;
})

hack([
"node_modules/react-native-os/android/src/main/java/com/peel/reactos/RNOS.java",
], (s) => {
s=s.replace(
/[}] catch [(]SocketException e[)] [{]/g,
"} catch (java.lang.Exception e) {"
)
return s;
})


function hack(file, transform) {
if (Array.isArray(file)) {
Expand Down

0 comments on commit e486811

Please sign in to comment.