GithubHelp home page GithubHelp logo

Comments (7)

wmathurin avatar wmathurin commented on August 18, 2024

Did you generate the application with forcereact ? Or are you running the template from the dev branch ?
If it is that latter, we have a PR in flight to fix some issues.

from salesforcemobilesdk-templates.

ziftech avatar ziftech commented on August 18, 2024

I used these steps:
https://github.com/forcedotcom/SalesforceMobileSDK-Templates/blob/v9.0.0/MobileSyncExplorerReactNative/README.md

node ./installios.js
then run in Xcode

from salesforcemobilesdk-templates.

wmathurin avatar wmathurin commented on August 18, 2024

What's in the package.json that lives in the root directory of your project?
Specifically what is in the "sdkDependencies" section?

from salesforcemobilesdk-templates.

ziftech avatar ziftech commented on August 18, 2024
{
  "name": "MobileSyncExplorerReactNative",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "sdkDependencies": {
    "SalesforceMobileSDK-Android": "https://github.com/forcedotcom/SalesforceMobileSDK-Android.git#dev",
    "SalesforceMobileSDK-iOS": "https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git#dev"
  },
  "dependencies": {
    "@react-native-masked-view/masked-view": "^0.2.7",
    "@react-navigation/native": "^6.0.2",
    "@react-navigation/stack": "^6.0.7",
    "react-native-elements": "^3.4.2",
    "react": "18.1.0",
    "react-native": "0.70.14",
    "react-native-force": "git+https://github.com/forcedotcom/SalesforceMobileSDK-ReactNative.git#dev",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-safe-area-context": "^3.3.0",
    "react-native-screens": "^3.6.0",
    "react-native-vector-icons": "^8.1.0",
    "create-react-class": "^15.7.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@babel/preset-env": "^7.1.6",
    "@react-native-community/eslint-config": "^2.0.0",
    "@types/jest": "^26.0.24",
    "@types/react": "^18.0.21",
    "@types/react-native": "^0.70.14",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "^7.32.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.72.3",
    "react-test-renderer": "18.1.0",
    "rimraf": "3.0.2",
    "typescript": "^4.8.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

from salesforcemobilesdk-templates.

wmathurin avatar wmathurin commented on August 18, 2024

So you are using dev:

"SalesforceMobileSDK-Android": "https://github.com/forcedotcom/SalesforceMobileSDK-Android.git#dev",
"SalesforceMobileSDK-iOS": "https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git#dev"

We recommend you use forcereact to generate your application.
Just npm install forcereact.
Use the listtemplates command to see available templates:

% forcereact listtemplates 
Available templates:

1) Basic React Native application
forcereact createwithtemplate --templaterepouri=ReactNativeTemplate
2) Basic React Native application that uses deferred login
forcereact createwithtemplate --templaterepouri=ReactNativeDeferredTemplate
3) Basic React Native application written in TypeScript
forcereact createwithtemplate --templaterepouri=ReactNativeTypeScriptTemplate
4) Sample application using MobileSync data framework
forcereact createwithtemplate --templaterepouri=MobileSyncExplorerReactNative

Alternatively, if you want to work with the template directly, make sure to be on a tagged version of the repo.
Here is package.json on the 11.1.0 tag: https://github.com/forcedotcom/SalesforceMobileSDK-Templates/blob/v11.1.0/MobileSyncExplorerReactNative/package.json -- you will notice that it points to:

    "SalesforceMobileSDK-Android": "https://github.com/forcedotcom/SalesforceMobileSDK-Android.git#v11.1.0",
    "SalesforceMobileSDK-iOS": "https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git#v11.1.0"

from salesforcemobilesdk-templates.

ziftech avatar ziftech commented on August 18, 2024

@wmathurin forcereact createwithtemplate --templaterepouri=MobileSyncExplorerReactNative
that works! Thanks
Could you please also suggest where I can find login/password for test app?

from salesforcemobilesdk-templates.

wmathurin avatar wmathurin commented on August 18, 2024

It should work in any org that you own (dev org or other) as long as the user has API access.

from salesforcemobilesdk-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.