GGauthamdocs
Play Age Range

Introduction

A Nitro Module wrapping Apple's Declared Age Range API and Google Play's Age Signals API. One JS surface, two platforms — for Texas SB2420, Utah, and Louisiana age-compliance requirements.

Compliance context.

Texas SB2420 takes effect January 1, 2026. Utah follows in May, Louisiana in July. Apple and Google roll out their signal APIs on the same schedule — this library is the React Native bridge to both.

Install

npm install react-native-play-age-range-declaration react-native-nitro-modules

Quickstart

Two things to remember: iOS needs setAgeRangeThresholds before anything else, and eligibility is a separate call from the actual request — check first, request when ready.

app/age-check.ts
import {
  isEligibleForAppleAgeRangeInAppStore,
  getIsConsideredOlderThan,
  setAgeRangeThresholds,
} from 'react-native-play-age-range-declaration'

// iOS-only setup — call once, before requesting anything.
// Thresholds must create ranges ≥ 2 years apart.
await setAgeRangeThresholds([13, 16, 18])

// Cross-platform: routes to Apple on iOS, Google Play on Android.
const isAdult = await getIsConsideredOlderThan(18)
APIs start returning real data on Jan 1st 2026.

Before that date, isEligible returns false universally per Apple & Google's rollout schedule. Build against the API now, ship the compliance gate on Jan 1.

Platform requirements

  • iOS 26.2+ — Apple's Declared Age Range API
  • Android 15+ with Google Play Services — Play Age Signals API
  • Also handles Amazon Appstore and Samsung Galaxy Store signals when the app was installed from those stores

Live downloads

npm downloads · last 26 weeks
react-native-play-age-range-declaration
293.0k
peak 17.0k/wk

Skill for AI agents

Drop this into .claude/skills/ or .cursor/rules/ and your agent knows how to use the library correctly — thresholds, eligibility checks, entitlements, all of it.

No skill.txt for react-native-play-age-range-declaration yet.
Maintainer
G
Gautham Vijayan
@Gautham495
Sponsor

This library is maintained by one person. Sponsors fund the next release — and let issues get triaged the same week.

Support the library.
Sponsors get their name here and priority on issues.
Sponsor

On this page