@@ -41,12 +41,12 @@ useThirdPartyJSC=true
41
41
42
42
Open AppDelegate.swift and overwrite ` createJSRuntimeFactory ` method:
43
43
44
- ``` swift
44
+ ``` diff
45
45
import React
46
46
import React_RCTAppDelegate
47
47
import ReactAppDependencyProvider
48
48
import UIKit
49
- import RCTRuntime
49
+ + import RCTRuntime
50
50
51
51
// AppDelegate code
52
52
@@ -63,19 +63,19 @@ class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
63
63
#endif
64
64
}
65
65
66
- override func createJSRuntimeFactory () -> JSRuntimeFactory {
67
- jsrt_create_jsc_factory () // Use JavaScriptCore runtime
68
- }
66
+ + override func createJSRuntimeFactory() -> JSRuntimeFactory {
67
+ + jsrt_create_jsc_factory() // Use JavaScriptCore runtime
68
+ + }
69
69
}
70
70
```
71
71
72
72
### Android
73
73
74
74
Open ` MainApplication.java ` and overwrite ` getJavaScriptExecutorFactory ` method:
75
75
76
- ``` java
77
- import io.github.reactnativecommunity.javascriptcore.JSCExecutorFactory
78
- import io.github.reactnativecommunity.javascriptcore.JSCRuntimeFactory
76
+ ``` diff
77
+ + import io.github.reactnativecommunity.javascriptcore.JSCExecutorFactory
78
+ + import io.github.reactnativecommunity.javascriptcore.JSCRuntimeFactory
79
79
80
80
class MainApplication : Application(), ReactApplication {
81
81
@@ -94,12 +94,12 @@ class MainApplication : Application(), ReactApplication {
94
94
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
95
95
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
96
96
97
- override fun getJavaScriptExecutorFactory(): JavaScriptExecutorFactory =
98
- JSCExecutorFactory(packageName, AndroidInfoHelpers . getFriendlyDeviceName())
97
+ + override fun getJavaScriptExecutorFactory(): JavaScriptExecutorFactory =
98
+ + JSCExecutorFactory(packageName, AndroidInfoHelpers.getFriendlyDeviceName())
99
99
}
100
100
101
- override val reactHost: ReactHost
102
- get () = getDefaultReactHost (applicationContext , reactNativeHost , JSCRuntimeFactory ())
101
+ + override val reactHost: ReactHost
102
+ + get() = getDefaultReactHost(applicationContext, reactNativeHost, JSCRuntimeFactory())
103
103
104
104
override fun onCreate() {
105
105
super.onCreate()
@@ -116,6 +116,15 @@ class MainApplication : Application(), ReactApplication {
116
116
117
117
This library is maintained by [ Callstack] ( https://callstack.com/ ) a Total Software Engineering Consultancy that transforms organizations and teams through transformative apps.
118
118
119
+ ### Special Thanks
120
+
121
+ Special thanks to the team who worked on the initial extraction of JavaScriptCore from core react-native:
122
+
123
+ - [ Riccardo Cipolleschi] ( https://github.com/cipolleschi )
124
+ - [ Nicola Corti] ( https://github.com/cortinico )
125
+ - [ Kudo Chien] ( https://github.com/Kudo )
126
+ - [ Oskar Kwaśniewski] ( https://github.com/okwasniewski )
127
+
119
128
## License
120
129
121
130
Everything inside this repository is [ MIT licensed] ( ./LICENSE ) .
0 commit comments