This is no longer supported, please consider using this instead. New merchants will not able able to collect payments using this SDK.
React Native Sdk Demo App
This is a sample react native application demonstrating and utilizing Cashfree react-native-pg-react-native-sdk.
Requirements
This app requires the following.
- Node CLI installed and configured.
- Npm/Yarn CLI installed and configured.
- React-native CLI installed and configured (OPTIONAL) .
- Android development environment and adb CLI installed (For Android app).
- Gradle installed and configured (For Android app).
- IOS development environment installed (For iOS app).
Installation And Setup
-
Clone the github project using zip file download or using git.
git clone https://github.com/cashfree/react-native-pgsdk-demo-app.git
-
Go to the project folder Install the node dependencies.
cd react-native-pgsdk-demo-app && npm install
or ( for yarn users )
cd react-native-pgsdk-demo-app && yarn install
-
Go to the "ios" folder and install the pod dependencies.
cd ios && pod deintegrate && pod install && cd ..
Running the project
To Run a specific platform use the following
-
Android
npm react-native run-android
or
yarn react-native run-android
or
react-native run-android
-
iOS
npm react-native run-ios
or
yarn react-native run-ios
or
react-native run-ios
-
Node server
npm start
or
yarn start
Clean the Build folders
Run the following commands to clean the build according to platforms.
-
Android
npm run clean-android
or
yarn run clean-android
-
iOS
npm run clean-ios
or
yarn run clean-ios