express-wyre-react-native
💸 The companion React Native library for express-wyre
.
🚀 Getting Started
yarn add express-wyre-react-nativeexpo install react-native-webview
yarn add express-wyre-react-nativeyarn add react-native-webview
✍️ Usage
Apply the default export ExpressWyre
at the graphical root of your application. Then call the usePlaid
hook to request a public token:
;; ; { const requestPublicToken = ; return <TouchableOpacity onPress=async { try const publicToken = await ; console; catch e console; }> <Text children="Request Plaid Token" /> </TouchableOpacity> ;}; { return <ExpressWyre baseUrl="http://localhost:3000/wyre"> <View style=StyleSheetabsoluteFill> <SafeAreaView /> <PlaidButton /> </View> </ExpressWyre> ;}
The baseUrl
prop is required. This defines the location of your express-wyre
middleware. For further details, check out the Example App.