-
Notifications
You must be signed in to change notification settings - Fork 107
Autolinking
React Native libraries often come with platform-specific (native) code. Autolinking is a mechanism that allows your project to discover and use this code.
Add a library and run the build:
# install
npm install react-native-razorpay --save
cd ios && open podfile # Change the platform from iOS 9.0 to 10.0
pod install && cd .. # CocoaPods on iOS needs this extra step
# run
yarn react-native run-ios
-
$ npm install react-native-razorpay --save
// Install the Razorpay React Native Standard SDK using the npm command. -
react-native link react-native-razorpay
// Link the SDK with React Native Project using Xcode. -
Drag the
Razorpay.framework
file from the Libraries folder and drop it under the root folder, for more info follow this link, after this go to Target > General Settings> Framework, Libraries and Embedded Content section, set the Embed status of Razorpay.framework to Embed & Sign. -
Also make sure the razorpay framework is added in the embedded binaries section and you have Always Embed Swift Standard Binaries set to yes in build settings.