@westpac-developer/react-native-sdk
v1.1.1
Published
Build payments in your native Android and iOS apps using [React Native](https://reactnative.dev/). This package includes the Payment Sheet UI and provider-driven integration helpers. For lower-level gateway and native payment APIs, use `@westpac-developer
Downloads
292
Readme
Westpac React Native SDK (UI Package)
Build payments in your native Android and iOS apps using React Native.
This package includes the Payment Sheet UI and provider-driven integration helpers.
For lower-level gateway and native payment APIs, use @westpac-developer/react-native-core.
Installation
Step 1: Resolve and download the package.
npm install @westpac-developer/react-native-sdk # Or yarn add @westpac-developer/react-native-sdk
@westpac-developer/react-native-coreis already included as a dependency of this package. Install it explicitly only if you will import from@westpac-developer/react-native-coredirectly.
Step 2: Install required peer dependencies.
yarn add @react-navigation/native @react-navigation/stack @gorhom/bottom-sheet \
react-native-reanimated react-native-gesture-handler react-native-svg \
react-native-safe-area-context react-native-screens react-native-payment-icons \
@react-native-clipboard/clipboard lucide-react-native expo-checkboxStep 3: Link native modules for iOS.
cd ios && pod installStep 4: Android setup.
Android modules are auto-linked. Rebuild your Android app after installation.
cd android && ./gradlew cleanUsage
Getting Started
See Westpac QuickStream - React Native SDK.
Payment Sheet UI
Collect your customers' payment account details using the pre-built Payment Sheet UI.
View the Payment Sheet UI guide.
SDK Reference
View the React Native SDK reference documentation, covering functions and components available in all integration types.
