
Security News
Next.js moves to scheduled security releases
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.
@customerglu/react-native-customerglu
Advanced tools
CustomerGlu React Native SDK — in-app gamification, rewards, and engagement campaigns for iOS and Android.
In-app gamification, rewards, and engagement campaigns for React Native — unified API across iOS and Android.
All CustomerGlu SDKs share the same version number.
iOS 4.1.2 · Android 4.1.2 · React Native 4.1.2
| Platform | Minimum |
|---|---|
| React Native | 0.71+ |
| iOS | 14.0+ / Xcode 13+ |
| Android | API 21 (Android 5.0)+ |
| Node.js | 16+ |
npm install @customerglu/react-native-customerglu
yarn add @customerglu/react-native-customerglu
Install the native CocoaPods dependency:
cd ios && pod install && cd ..
The React Native SDK automatically pulls in the native iOS SDK (CustomerGlu 4.1.2) via CocoaPods.
The native Android SDK (com.customerglu:CustomerGluLibrary:4.1.2) is resolved automatically via Maven Central.
Ensure mavenCentral() is in your project-level build.gradle (or settings.gradle):
// build.gradle (project)
allprojects {
repositories {
mavenCentral()
}
}
// OR settings.gradle (newer projects)
dependencyResolutionManagement {
repositories {
mavenCentral()
}
}
No additional Android configuration is required.
Info.plist<key>CUSTOMERGLU_WRITE_KEY</key>
<string>YOUR_WRITE_KEY</string>
AndroidManifest.xml<meta-data
android:name="CUSTOMERGLU_WRITE_KEY"
android:value="YOUR_WRITE_KEY" />
You can find your write key in the CustomerGlu Dashboard under Settings → SDK Keys.
import { CustomerGlu } from '@customerglu/react-native-customerglu';
// Register user (call once after login / app launch)
await CustomerGlu.registerDevice('user-123');
// Open the rewards wallet
CustomerGlu.openWallet();
// Load all campaigns
CustomerGlu.loadAllCampaigns();
// Send a custom event
CustomerGlu.sendEventData({
eventName: 'purchase',
eventProperties: { amount: 99 },
});
// Update user attributes
CustomerGlu.updateProfile({ plan: 'premium' });
Embed native banner widgets in your React Native views using CGBannerWidget:
import { CGBannerWidget } from '@customerglu/react-native-customerglu';
function HomeScreen() {
return (
<CGBannerWidget
bannerId="home_rewards_banner"
style={{ width: '100%' }}
/>
);
}
The SDK handles rendering, styling, native widget inflation, and click actions automatically based on your dashboard configuration. Banner height is managed dynamically — native widgets measure their content and resize the React Native container.
| Feature | Description |
|---|---|
| Cross-platform | Single TypeScript API for iOS and Android |
| Entry Points | Floating buttons, banners, embedded views |
| Native Widgets | DYNAMIC_MULTISTEP progress widgets rendered natively (no WebView) |
| Campaigns | Bottom sheets, popups, full-screen campaigns |
| Real-time | SSE-based live nudges and state updates |
| Deep Linking | Campaign navigation handling |
| Analytics | Event tracking and diagnostics |
| Multi-region | ME, US, and default API endpoints — resolved automatically |
CGBANNER_FINAL_HEIGHT to resize React Native containers dynamicallyclipsToBounds = NO on the bridge view enables MS3 expand/collapse animation overflow| Issue | Solution |
|---|---|
pod install fails | Run pod repo update then retry; ensure Xcode CLT is installed |
| Android build error | Verify mavenCentral() in repositories; ensure Java 17+ |
| Banner not showing | Check bannerId matches dashboard config; ensure registerDevice succeeded |
| Height not updating | Confirm CGBannerWidget has overflow: 'visible' in its style if using MS3 expand |
| Module not found | Clear caches: npx react-native start --reset-cache |
The React Native SDK wraps the native SDKs. For advanced customization or standalone native apps:
| Platform | Package | Install |
|---|---|---|
| iOS | CustomerGlu | CocoaPods · SPM |
| Android | com.customerglu:CustomerGluLibrary:4.1.2 | Maven Central |
Full SDK docs, guides, and API reference:
https://docs.customerglu.com/sdk/mobile-sdks#react-native
FAQs
CustomerGlu React Native SDK — in-app gamification, rewards, and engagement campaigns for iOS and Android.
We found that @customerglu/react-native-customerglu demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.