Record Viewer—React Native
This React Native app shows you how easy it is to use the Salesforce User Interface API to create, read, update, and delete Salesforce records.
Salesforce uses User Interface API to build the Salesforce1 and Lightning Experience apps. Not only do you get data and metadata in a single response, but the response matches metadata changes made to the org by Salesforce admins. You don’t have to worry about layouts, picklists, field-level security, or sharing—all you have to do is build an app that users love.
Set Up the App
The Record Viewer app gets and sets data from a Salesforce organization.
To authenticate Record Viewer with a Salesforce org:
-
In the Salesforce org, configure a connected app.
- For the Callback URL, enter any URL that starts with
https://
. - For OAuth Scope, select either
api
orfull
. - Make a note of the OAuth consumer key to enter in the Record Viewer Config.js file.
- For the Callback URL, enter any URL that starts with
-
Clone the RecordViewerNative repository.
-
In the Config.js file:
- Set
oauthRedirect
to the callback URL in the connected app. - Set
consumerKey
to the OAuth consumer key in the connected app.
- Set
Build the App
- Install
react-native
,watchman
, andXCode
. - From the RecordViewerNative directory:
- Run
npm install
. - Run
react-native run-ios
. (The Android build might work, but we haven't tested it.)
- Run