If you're looking for information on how to integrate the SDK, check out our
Universal Checkout integration guide.
Step 1. Install the SDK
Add the SDK package using your preferred package manager:
12345
# With yarnyarn add @primer-io/react-native # With npmnpm i @primer-io/react-native --save
bash
copy
Step 2. Install the iOS dependencies
After adding the SDK, navigate to the /ios
folder and run pod install
to ensure all iOS dependencies are properly installed.
Step 3.
Then import Primer
in your application
12345
import { Primer, PrimerSettings } from '@primer-io/react-native'; // for examplePrimer.configure({ /* options */ } as PrimerSettings);Primer.showUniversalCheckout(clientToken);
ts
copy