Skip to content

React Native Support #80

Description

@stefashkaa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions