Close
logointerlace
Talk with us >

2. Setup your Prefab

After setting up your nexus private repository, you can use our prefabs in your React Native project by following the next steps:

  1. Run npm i --save @infinant/retail-ao-prefab-react-component@0.0.24 to get this specific version or npm i --save @infinant/retail-ao-prefab-react-component@latest to get the latest version. You can also use it with yarn or pnpm.
  2. Make sure you're using the right version of the component.
  3. Add to your source code by importing it:
import { RetailAccountOpenningPrefab } from "@infinant/retail-ao-prefab-react-component";
export function PrefabPage() {
return <RetailAccountOpenningPrefab
environment="ENVIRONMENT"
productCode="DD100"
productSubcode=""
customerId="1234"
clientId="CLIENT_ID"
clientSecretKey="CLIENT_SECRET_KEY"
/>;
}
  1. Replace ENVIRONMENT with sandbox or production according to which environment you're integrating with.
  2. Replace CLIENT_ID with your Client ID from Infinant Console Portal.
  3. Replace CLIENT_SECRET_KEY with your Client Secret Key from Infinant Console Portal.
🚀 API Documentation — Previous
1. Setup NPM Repository
Next — 🚀 API Documentation
3. Setup a React Native app to work with your Prefab