/rnacp

Primary LanguageJavaScript

ACPCoreSampleApp

Note: Commands are assuming you're in the root directory of the repository.

Note: If you are new to React Native we suggest you follow the React Native Getting Started page before continuing.

How to run the sample app:

Add your App Id:

In ios/**/AppDelegate.m, find the call to configureWithAppId and add your app id.

In android/**/MainApplication.java, find the call to configureWithAppId and add your app id.

Run instructions for iOS:

cd sample/ACPCoreSampleApp/ && npm install && cd ios/ && pod update && cd .. && react-native run-ios

Note: If you see an error "Can't find simulator for "iPhoneX"", this is a known issue with React Native and you should try running the sample app inside of Xcode.

or

cd sample/ACPCoreSampleApp/ && npm install && cd ios/ && pod update

Then, open the Xcode project under the ios directory and hit run.

Run instructions for Android:

Have an Android emulator running (quickest way to get started), or a device connected. https://developer.android.com/studio/run/emulator-commandline

cd sample/ACPCoreSampleApp/ && npm install && react-native run-android

Troubleshooting

If you're having issues running the sample app, ensure you can at least run a default react native app.

react-native init MyReactApp
cd MyReactApp
react-native run-ios or react-native run-android