You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newer RN manages JSC by node dependency.
facebook/react-native#24276
Integrate and update JSC would be easier than before.
However, [in the PR comments](facebook/react-native#24276) there are still some enhancements could be done.
1. Align NDK version to prevent potential ABI incompatible issue.
2. Remove libc++_shared.so from jsc-android.aar, so that user don't need to use `packagingOptions.pickFirst` to exclude them.
For RN 0.58 and before, since it was built by gcc.
These is no libc++_shared.so but libgnustl_shared.so.
For jsc-android side, provide an android-jsc-cppruntime.aar for user to add libc++_shared.so.
+ // Local Maven repo containing AARs with JSC library built for Android
84
+
+ url "$rootDir/../node_modules/jsc-android/dist"
85
+
+ }
86
+
}
87
+
}
88
+
```
89
+
90
+
3. Update your app's `build.gradle` file located in `android/app/build.gradle` to add the JSC dependencey. Please make sure the dependency should put before React Native dependency.
91
+
92
+
```diff
93
+
94
+
dependencies {
95
+
+ // Make sure to put android-jsc at the the first
0 commit comments