A sample React Native application with MobileFirst Capability which does basic OAuth communication with MobileFirst Server.
- From the command-line window, navigate to the project's roots folder and run the commands:
npm install react-native-ibm-mobilefirst
- to install Mobilefirst react native SDK.npm install
- to install project dependencies.react-native link
- to link libraries to respective platforms based on dependencies.
- From a command-line window, navigate to the platforms's root folder (either iOS or Android) and run the commands:
mfpdev app register
- to register the application.
- From the command-line window, navigate to the project's roots folder and run the command:
react-native run-ios
orreact-native run-android
- to run the application in an iOS Emulator or Android Simulator.
- Press the Ping MobileFirst Server button to ping MobileFirst Server.
IBM MobileFirst Platform Foundation 8.0
Copyright 2018 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at att http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.