-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'native module cannot be null' #22
Comments
Need more information to help with this. Send stacktrace and try some fixes as suggested by Google. |
No activity on this for long, closing for now. |
Was able to resolve this by relaunching the simulator and the terminal (react-native run-ios). Thanks |
Hey please provide more details as in which version of our package are you using and which version of Xcode are you using?. If you are not using version 2.0.3 of react-native-razorpay , update to the latest version i.e 2.0.3 and try. |
I am using Expo V^23.0.4, RN V0.50.3, React V16.0.0, RazorPay V^2.0.3. |
did your issue get solved? can you check if your library has been properly linked on react-native by following the manual process written in the readme? |
My problem is not solved yet in IOS, but in android i am able to see: error alert() as [Undefined | Undefined] through this line: |
I can help you integrate it in react-native as I believe it is an integration issue , can u send your integration steps to integrations@razorpay.com so that I can verify it? |
I followed these steps:
Once i Run the project from terminal: $ npm startIOS:Error in red Screen coming as "native module cannot be null" link: https://user-images.githubusercontent.com/32872520/38719156-1aab06a2-3f0e-11e8-84bf-a62c5a070ee3.png in IOS (Note: error not coming if i am removing this line "import RazorpayCheckout from 'react-native-razorpay';", but we must need to import "RazorpayCheckout") Android:
(Note: After adding [Razorpay.framework] into "Embeded Binaries" it is also showing in the "Linked Frameworks and Libraries", so i skipped to add) i am not able to follow the steps from: https://razorpay.com/docs/ios/#step-2-initialize-the-razorpay-sdk, because not able to find "ViewController.swift" in entire project. |
Hey I believe there is something wrong in the way you are integrating the sdk ,you cannot add the framework directly to the project, you have to add it under libraries and then add the static library to your main projects Link binary with libraries (this step should only be used if react-native link react-native-razorpay fails).Moreover the steps which you have sent is not in accordance with the readme as you are following the link for the iOS sdk integration and not the react-native one.Please follow the link below and reply on integrations@razorpay.com if you still face any further issue. |
it doesn't work with the tools like expo which doesn't support native modules.It's my mistake, i had not seen "Things to be taken care:" Because i had already mentioned in reply as I am using Expo V^23.0.4, RN V0.50.3, React V16.0.0, RazorPay V^2.0.3. |
closing the ticket as the issue is resolved. |
@iThink32 : can you please help me with the integration , I followed all the steps mention in manual process , getting this error finally .
|
Hey @Prateek479 We now have integration videos , you can watch this and try it , if you still face issues ill help you fix it. The link is https://youtu.be/hE-F0QqTwnI. All these links will be uploaded on our docs page but for now you can use this. |
closing as this issue is fixed |
Everything working fine till Xcode 10.1 and react-native-razorpay: 2.1.23 I have updated my Xcode from 10.1 to 10.3. when I trigger "RazorpayCheckout.open()" it pops 'native module cannot be null' error. Surprisingly If linking fails, It should pop the error on launch. But It's popping when I call RazorpayCheckout.open(). I'm unable to figure out exactly what happening under the hood. |
great Job @iThink32 , looks good to me 👍 |
Did all the steps give in above video @iThink32 . But build fails with error Library not found for - IDoubleConversion |
Issue reported over chat for iOS
The text was updated successfully, but these errors were encountered: