Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

React Native Sample Apps

Template Apps

You can use template apps with forcereact create or forcereact createwithtemplate to spawn Mobile SDK “starter” apps. Find these samples in the github.com/forcedotcom/SalesforceMobileSDK-Templates repo.

Used by forcereact create
  • ReactNativeTypeScriptTemplate: Standard React Native template, written in TypeScript. Default app type for the forcereact create command. When forcereact create prompts for app type, press Return or enter react_native_typescript.
  • ReactNativeTemplate: React Native template written in ES2015 (plain JavaScript.) When forcereact create prompts for app type, enter react_native.
For use with forcereact createwithtemplate
  • ReactNativeDeferredTemplate: Demonstrates how to used deferred login in a React Native app. When forcereact createwithtemplate prompts for the repo URI, enter ReactNativeDeferredTemplate.
  • MobileSyncExplorerReactNative: Provides a comprehensive example of Mobile Sync usage. When forcereact createwithtemplate prompts for the repo URI, enter MobileSyncExplorerReactNative.