Skip to content

Public PagerViewProps rejects the documented layoutDirection=locale option #1115

Description

@OskarEichler

The README documents layoutDirection as ltr/rtl/locale and the wrapper already resolves locale through I18nManager, but PagerViewProps is exported directly from NativeProps, whose codegen union only allows ltr/rtl. The component therefore needs a ts-ignore for its own locale comparison and TypeScript callers cannot use the documented option. Proposed fix: expose a wrapper prop type accepting locale, keep native codegen props restricted to the two resolved directions, and remove the ignored comparison. No new runtime behavior or native enum is needed. This source audit is AI-assisted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions