Feature Title
React Native Support (@desource/phone-mask-rn) with Core Behavior Parity
Description
Parent: #79
Add official React Native support so teams can use the same phone formatting/validation behavior as web packages.
This should prioritize parity with @desource/phone-mask core logic (country masks, completeness checks, country switching, raw digits extraction) while staying lightweight and mobile-performant.
Use Case
Teams with React + React Native apps currently maintain different phone libraries and get inconsistent validation/formatting across platforms.
We need one behavior contract for all clients
Proposed Solution
- Create a package:
@desource/phone-mask-rn
- Provide:
- Hook-first API (
usePhoneMask) for custom RN inputs
- Lightweight native mobile oriented input component
Alternatives Considered
- Continue using third-party RN phone libraries and accept behavior drift.
- Publish docs-only integration with no official RN package.
Examples from Other Libraries
Feature Title
React Native Support (@desource/phone-mask-rn) with Core Behavior Parity
Description
Parent: #79
Add official React Native support so teams can use the same phone formatting/validation behavior as web packages.
This should prioritize parity with
@desource/phone-maskcore logic (country masks, completeness checks, country switching, raw digits extraction) while staying lightweight and mobile-performant.Use Case
Teams with React + React Native apps currently maintain different phone libraries and get inconsistent validation/formatting across platforms.
We need one behavior contract for all clients
Proposed Solution
@desource/phone-mask-rnusePhoneMask) for custom RN inputsAlternatives Considered
Examples from Other Libraries