react-native-plaid-link-sdk: PlaidLink component not displaying

I’ve followed the documentation and have an iOS simulator running with Expo. The PlaidLink component is not displaying despite other components on the same screen being displayed.

I see no errors or warnings. Using react-devtools, I see the PlaidLink component in the hierarchy along with its various child components, eg TouchableOpacity.

I’m using version 2.0.0.

Any ideas why nothing is being displayed? Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15

Most upvoted comments

Okay… so what does work. Is create your own button/touchableopacity,etc and pass into the PlaidLink as ‘component’ prop.

<PlaidLink
component = {()=><TouchableOpacity onPress={yourCustomCallback}>...</TouchableOpacity>}
.../>

Then for the onPress make a call to ‘openLink’ (passing in all your props as json object) from ‘react-native-plaid-link-sdk’ . That seems to work… but documentation is lacking there.

const yourCustomCallback = useCallback(()=> { openLink({env, product, etc }) …

Hi, could you please elaborate on how to go about it? I am facing the same issue and somehow can’t display the Plaidlink component at all.

Thanks everyone! v2.0.3 is now available on NPM and fixes this issue.

I’ve also updated the readme to show using the default TouchableOpacity as well as using a custom component with custom props: https://www.npmjs.com/package/react-native-plaid-link-sdk