React Native: Use autolinking for SalesforceReact (moved to react-native-force)#521
Merged
Merged
Conversation
- Add back `apply plugin: "org.jetbrains.kotlin.android"` removed by PR forcedotcom#516 - Bump kotlinVersion from 2.0.21 to 2.3.20 to match Android SDK libs - Point package.json sdkDependencies at wmathurin#rn-migration for CI NOTE: package.json changes (sdkDependencies pointing to wmathurin fork) must be reverted before merging this PR to dev.
…ative-force) - Remove SalesforceReact from settings.gradle composite build substitution - Remove explicit SalesforceReact dependency from app/build.gradle - Remove manual SalesforceReactPackage registration from MainApplication.kt - Remove SalesforceReact/package.json cleanup from installandroid.js React Native autolinking now handles SalesforceReactPackage registration automatically via react-native-force's react-native.config.js.
NOTE: These must be reverted to forcedotcom#dev before merging.
Job Summary for GradlePull Request :: test-android
|
Job Summary for GradlePull Request :: test-android
|
Job Summary for GradlePull Request :: test-android
|
Job Summary for GradlePull Request :: test-android
|
brandonpage
approved these changes
May 28, 2026
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates all 4 React Native templates to use React Native autolinking for
SalesforceReactPackage. The bridge code has moved from this repo'sSalesforceMobileSDK-Androiddependency to thereact-native-forcenpm package.Changes
All 4 RN Templates
SalesforceReactfromsettings.gradlecomposite build substitutionimplementation("com.salesforce.mobilesdk:SalesforceReact")fromapp/build.gradleSalesforceReactPackageregistration fromMainApplication.ktinstallandroid.js
SalesforceReact/package.jsoncleanup (no longer exists in Android SDK)Documentation
TESTING.md— Added SDK 14.0 note about--rn-force-branchcontrolling bridge codedocs/react-native-templates/TEMPLATE_ANATOMY.md— Updated composite build sectionRelated PRs
Before Merging
package.jsonsdkDependencies toforcedotcom#devreact-native-forcedependency toforcedotcom#devTest Plan