3. Running forceios App

In this unit, you'll run the forceios app you created earlier.

Step 1: Run The CLI

Before we can run the app in Xcode, we need to first run React Native CLI. This tool internally watches for any changes made to the app and updates the native app.

  1. While still in the ReactNativeSample folder, run: npm start

  2. Keep the React Native CLI running and switch to Xcode.

Step 2: Start The App in Xcode

  1. Change the target to "ReactNativeSample" (near the top left corner)

  2. Click the "Build and Run" (the "Arrow" button near the top-left corner).

  3. You should see the Simulator app open and ask for Salesforce Login

    Sometimes Simulator app opens behind the Xcode, so you may need to manually switch to it and bring it forefront.

  4. Login using any Salesforce developer Org. credentials.

  5. Click "Allow" in the next OAuth screen.

  6. You should now see the sample app that shows list of Salesforce users in that Org.

index
  1. Setting Up Developer Environment
  2. Creating forceios App
  3. Running forceios App
  4. Adding Connected App
  5. Updating JavaScript
  6. Adding New React Native Component
  7. Workflow Summary
  8. Next Steps
comments powered by Disqus