Comments (7)
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.
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.
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.
{
"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.
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.
@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.
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)
- "Can't find variable: oauth" error when signing out HOT 1
- Upgrade iOS sdk for react native template HOT 1
- forceios createWithTemplate failing HOT 3
- React Native Template does not have auto linking for ios HOT 2
- MobileSyncExplorerReactNative: Login after being logged out result in Fatal error HOT 3
- Switch user problem with SceneDelegate HOT 1
- Remote access consumer key HOT 2
- How to popup soup through REST API HOT 1
- Is it possible to use same syncName(SOUP) for different target/query for same sObject ? HOT 1
- iOS build fails HOT 3
- React Native Typescript template uses wrong @types/react HOT 3
- Repo in detached state HOT 1
- Can't build ios project after running forcereact create HOT 4
- Is it possible to supply dynamic key parameters in bootconfig.xml file (Android) or the bootconfig.plist file (iOS) ?? HOT 1
- How to implement a sync up for a custom object ? HOT 3
- How to sync up/down Salesforce Files(ContentDocument) via Mobile App HOT 1
- This makes it difficult to create multiple flavors HOT 1
- Can the structure of the android template be updated ? HOT 1
- SyncUp Not Working(data is not getting syncedUp to the salesforce server) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from salesforcemobilesdk-templates.