Skip to content

Commit

Permalink
Enable SES on both platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm committed Mar 21, 2024
1 parent b707dea commit 5c96aa6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions patches/react-native+0.71.15.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
diff --git a/node_modules/react-native/Libraries/Core/InitializeCore.js b/node_modules/react-native/Libraries/Core/InitializeCore.js
index 1379ffd..f2825f5 100644
index 1379ffd..9e5ff61 100644
--- a/node_modules/react-native/Libraries/Core/InitializeCore.js
+++ b/node_modules/react-native/Libraries/Core/InitializeCore.js
@@ -24,26 +24,37 @@
@@ -24,26 +24,35 @@

'use strict';

+const Platform = require('../Utilities/Platform');
+
+if (Platform.OS === 'ios' && !global?.HermesInternal) {
+ require('./setUpSes');
+}
+require('./setUpSes');
+
const start = Date.now();

Expand Down Expand Up @@ -44,7 +42,7 @@ index 1379ffd..f2825f5 100644
// We could just call GlobalPerformanceLogger.markPoint at the top of the file,
diff --git a/node_modules/react-native/Libraries/Core/setUpSes.js b/node_modules/react-native/Libraries/Core/setUpSes.js
new file mode 100644
index 0000000..6013411
index 0000000..5dc1859
--- /dev/null
+++ b/node_modules/react-native/Libraries/Core/setUpSes.js
@@ -0,0 +1,60 @@
Expand Down Expand Up @@ -237,4 +235,4 @@ index 290bd23..20d85e0 100644
+ }
}
return inputConnection;
}
}

0 comments on commit 5c96aa6

Please sign in to comment.