You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sachin Nautiyal edited this page Jan 27, 2020
·
3 revisions
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:
iOS
For React Native 0.60+
# 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
For React Native 0.59 and lower
$ 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.