react-native payments Could not invoke React native payments - react-native

I integrated react-native-payments library to the my react native app and i have a run time error saying could not invoke ReactNativePayments.show this is the error message

Edit:
I think, I got the proper solution. Actually there is a problem with ReactNativePayments.podspec file, follow the below steps:
Run
npm install react-native-payments --save
Open ReactNativePayments.podspec file and some changes (Refer screenshot below)
Then run link command react-native link react-native-payments
Go to ios folder and run following command
pod cache clean --all and pod install
Please let me know if those solution help you.
Thanks
Alankar Saini

Related

React Native tipsi-stripe - null is not an object (evaluating 'StripeModule.paymentRequestWithCardForm')

See the answer below to resolve this tipsi-stripe issue with React Native.
I resolved this error message by the following steps.
npm uninstall tipsi-stripe
npm install --save tipsi-stripe
cd ios
Open up the Podfile and add pod 'Stripe', '~> 14.0.0' (if it isn't already in the Podfile), beneath the target keyword.
pod install
I tried your above answer and it still gives the same error, null is not an object. I've tried using yarn add, also using your method of npm install --save tipsi-stripe. Also including a specific Stripe version in podfile. And pod installing.
Honestly, it occurred so consistently that I'm currently working on react-native-paypal. But I would like to use this method if it's at all possible. I also noticed the npm package says 'failing' currently, not sure if that has something to do with it. I followed your exact steps though.
EDIT: After all the configuration for PayPal/Braintree, at the very end with testing, I'm met with the exact same error: null is not an object. Looks like I'm back on Stripe for simplicity's sake, but this is terrible haha.

Struggling to set up nativebase in a React Expo project

I have tried so many different ways to set nativebase up with expo and am still having an issue. At the moment I'm using the
Getting Started documentation found on the nativebase website.
I first create a new app with expo using
expo init myapp
Then I install nativebase using
npm install native-base --save
Then I finally install the font
expo install expo-font
I even copy the App.js found in the getting started documentation, and after I start the app and try to run it on an emulator I face the below error
Unable to resolve "#expo/vector-icons/Fontisto" from "node_modules\native-base\dist\src\basic\IconNB.js"
Failed building JavaScript bundle.
What am I missing? Coming from .NET world this whole process with dependencies is so painful...
*Edit 1
I'm sure someone will make mention of the fact that the error message mentions #expo/vector-icons and I have not installed that. When running before I install this package I get that error, and after I install the mentioned package I still face the exact same error.
Please try with this version of native base :
npm i --save-exact native-base#2.13.8
Expo should release a version with that version .
Hope it helps. feel free for doubts
We can run the below command with Expo
npm i --save-exact native-base#2.13.8
Still this version is not available, but its working, really don't know why?

What is the problem with 'react-native-elements'?

When I try to use 'react-native-elements' package in my code, I face this error :
bundling failed: Error: Unable to resolve module react-native-vector-icons/FontAwesome from node_modules\react-native-elements\src\social\SocialIcon.js: react-native-vector-icons/FontAwesome could not be found within the project.
I have done many things to fix it. I installed the 'react-native-vector-icons' again, I used 'rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json' but non of them worked. what should I do to overcome this problem? I really appreciate your help guys.
make sure that you've installed the package with
npm install react-native-vector-icons and link it through
react-native link react-native-vector-icons
then for ios you need to install pod (goto your project ios folder on terminal and enter command pod install)
and then reset packager cache with react-native start --reset-cache
if you are using react version <0.60 use react-native link react-native-vector-icons and do the steps link and if react version > 0.60 then cd ios && pod install && cd .. and try again if its not work delete the build folder and rebuild again.

How to link package lib in react native ios?

I tried to link packages using react native link command as well as manually and what does mean by Recovered References. my unlinked libs are showing there and how to resolve it?.
2.) Unable to link libRNvectoricons.a under Build Phrases > Link Binary With Libraries. could not find option there to link up.
Any help would be greatly appreciated.
Follow these steps:
Delete the node_modules folder inside the project
run npm uninstall react-native-app-auth
run npm install react-native-app-auth --save
run react-native link react-native-app-auth
Then follow these steps (iOS Setup & Android Setup)

react-native reazy unable to resolve module

I am trying to test out the reazy react-native framework, I can't get the sample app up and running.
when I run the react-native run-ios command i am getting the following error:
unable to resolve module react/lib/reactComponentwithPureRenderMixing
node_modules/react-native-router-flux/node_modules/react-addons-pure-render-mixin/index.js
Module does not exist in the module map
I have removed my modules and reinstalled them. the module folder is there for react-native-router-flux
nothing in the JS console
any help is appreciated
Please install router flux using below and refresh
npm install --save react-native-router-flux
Hope! this helps.
Run the following command and it will be solved-
yarn add react-addons-pure-render-mixin
this is manual step to add this module.