React Native SDK for IBM Mobile Foundation
This is the React Native SDK for IBM Mobile Foundation.
Getting Started
Pre-requisites
- Make sure you have all the pre-requisites for a React Native app covered. See the React Native Getting Started page if you're new to this whole stuff.
- Setup of MobileFirst server
Android
- The first step is to create a React Native project. Let's call our app as the MyCarApp. Use the React Native CLI to create a new project.
cd MyApps
react-native init MyReactWallet
- Next, add the react native plugin to your app
cd MyReactWallet
npm install <path_to_react-native-ibm-mobilefirst_package> --save
- Link your project so that all native dependencies are added to your React Native project.
react-native link
Run your app
cd ..
react-native run-android
iOS
- The first step is to create a React Native project. Let's call our app as the MyCarApp. Use the React Native CLI to create a new project.
cd MyApps
react-native init MyReactWallet
- Next, add the react native plugin to your app
cd MyReactWallet
npm install <path_to_react-native-ibm-mobilefirst_package> --save
- Link your project so that all native dependencies are added to your React Native project.
react-native link
- Install MobileFirst native dependencies to your React Native project.
cd ios
pod install
- Run your app.
cd ..
react-native run-ios
Manual Steps for iOS only
- In XCode, in the project navigator, drag and drop "mfpclient.plist" from "ios" folder.