Mobile SDK Native Modules for React Native Apps

Mobile SDK provides native modules for React Native that serve as JavaScript bridges to native Mobile SDK functionality.

The OAuth bridge is similar to the OAuth plugin for Cordova.

See react.force.oauth.ts in the SalesforceMobileSDK-ReactNative GitHub repo.

The Network bridge is similar to the force.js library for hybrid apps.

See react.force.net.ts in the SalesforceMobileSDK-ReactNative GitHub repo.

The SmartStore bridge is similar to the SmartStore plugin for Cordova. Unlike the plugin, however, first arguments aren’t optional in React Native.

See react.force.smartstore.ts in the SalesforceMobileSDK-ReactNative GitHub repo.

The Mobile Sync bridge is similar to the Mobile Sync plugin for Cordova. Unlike the plugin, however, first arguments aren’t optional in React Native.

See react.force.mobilesync.ts in the SalesforceMobileSDK-ReactNative GitHub repo.

Handling of field lists for “sync up” operations changed in Mobile SDK 5.1. See Mobile Sync Plugin Methods for a description of the JavaScript syncUp() method.