Integrate Flock’s referral and rewards platform into your React Native app with the official Flock SDK. This guide covers setup, configuration, and usage for React Native apps.
Info.plist
file includes permissions for internet access:AndroidManifest.xml
includes the following permission:
FlockSDKProvider
and pass the publicAccessKey
and environment
:
identify
after your user logs in to link their identity with Flock:
New: UseA placement renders a Flock referral page within your app, making it easy to prompt users to share and participate in your referral program.addPlacement(placementId, options)
to display a referral component. Each campaign page now has a uniqueplacementId
for robust and future-proof integration.
openPage(type, options)
method is now deprecated and will be removed in a future release.openPage
to addPlacement
.addPlacement
method with the invitee
placement ID:
Deprecated:openPage(type, options)
is now deprecated. UseaddPlacement(placementId, options)
for all new integrations.