Back to skills
SKILL.md
Add Posthog Rn Android
ASecurityAdd PostHog analytics + feature flags + session replay on Android. Use when the user says 'posthog android', 'analytics android', 'feature flags android'.
- 3 stars
- 0 votes
- 0 copies
- 0 views
- Added October 4, 2026
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
Pro scans all 2 files and shows the line behind each finding
npx -y skills add khadinakbarlabs/expo-mobile-app-builder --skill add-posthog-rn-android --agent claude-codeAre you the author of Add Posthog Rn Android?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/khadinakbarlabs-add-posthog-rn-android)---
name: "add-posthog-rn-android"
description: "Add PostHog analytics + feature flags + session replay on Android. Use when the user says 'posthog android', 'analytics android', 'feature flags android'."
---
# PostHog (Android)
Same as iOS plugin. Android-specific:
## Install
```bash
pnpm add posthog-react-native @posthog/react-native-session-replay
```
## Session Replay
Heavier on Android than iOS — disable for low-end devices:
```tsx
sessionReplayConfig: {
maskAllTextInputs: true,
maskAllImages: false,
androidConfig: {
debounceDelayMs: 1000, // throttle on Android
}
}
```
## Feature flags + Material You
Use PostHog flag to A/B test Material You vs custom theme:
```tsx
const useDynamicColors = posthog.isFeatureEnabled('material-you-rollout');
```
## Pair with
- iOS plugin's `add-posthog-rn`
- `add-sentry-rn-android` (crashes), PostHog (product analytics)
Files in this skill
- SKILL.md
- agents/openai.yaml
Attribution
Comments
Loading comments…