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.
FlockSDK-React Native enables seamless integration of Flock referral and rewards into your React Native applications. Effortlessly build powerful referral programs and track customer engagement in minutes.
OR
Auto-linking handles native dependencies for React Native 0.60+.
Info.plist
file includes permissions for internet access:Make sure AndroidManifest.xml
includes the following permission:
Wrap your app in the FlockSDKProvider
and pass the publicAccessKey
and environment
:
Call identify
after your user logs in to link their identity with Flock:
New: Use
addPlacement(placementId, options)
to display a referral component. Each campaign page now has a uniqueplacementId
for robust and future-proof integration.
A placement renders a Flock referral page within your app, making it easy to prompt users to share and participate in your referral program.
openPage(type, options)
method is now deprecated and will be removed in a future release.openPage
to addPlacement
.To display the invitation page for the invitee, use the addPlacement
method with the invitee
placement ID:
Deprecated:
openPage(type, options)
is now deprecated. UseaddPlacement(placementId, options)
for all new integrations.
Q: What React Native version is required? A: @wflock/react-native-sdk supports React Native 0.60 and above.
Q: Can I customize WebView actions? A: Yes, you can listen to messages from the WebView and define custom follow-up actions.
Q: Where can I get support? A: Contact the Flock support team at support@withflock.com.
Thank you for using Flock SDK!
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.
FlockSDK-React Native enables seamless integration of Flock referral and rewards into your React Native applications. Effortlessly build powerful referral programs and track customer engagement in minutes.
OR
Auto-linking handles native dependencies for React Native 0.60+.
Info.plist
file includes permissions for internet access:Make sure AndroidManifest.xml
includes the following permission:
Wrap your app in the FlockSDKProvider
and pass the publicAccessKey
and environment
:
Call identify
after your user logs in to link their identity with Flock:
New: Use
addPlacement(placementId, options)
to display a referral component. Each campaign page now has a uniqueplacementId
for robust and future-proof integration.
A placement renders a Flock referral page within your app, making it easy to prompt users to share and participate in your referral program.
openPage(type, options)
method is now deprecated and will be removed in a future release.openPage
to addPlacement
.To display the invitation page for the invitee, use the addPlacement
method with the invitee
placement ID:
Deprecated:
openPage(type, options)
is now deprecated. UseaddPlacement(placementId, options)
for all new integrations.
Q: What React Native version is required? A: @wflock/react-native-sdk supports React Native 0.60 and above.
Q: Can I customize WebView actions? A: Yes, you can listen to messages from the WebView and define custom follow-up actions.
Q: Where can I get support? A: Contact the Flock support team at support@withflock.com.
Thank you for using Flock SDK!