Skip to content

Strict API: replace removed root type exports #101815

Closed

Description

@roryabraham

Part of #101439.

Do not enable customConditions here. Derive the replacements from props that exist on both APIs.

Incompatibility

These types are imported from react-native and are not exported under the Strict API:

Removed Where
AlertStatic src/components/Alert/types.ts
CellRendererProps src/components/AnimatedFlatListWithCellRenderer.tsx, src/components/FlatList/FlatList/types.ts
ViewToken src/components/Attachments/AttachmentCarousel/types.ts, src/components/FeatureTraining/FeatureTrainingCarousel.tsx
ViewabilityConfig src/components/FeatureTraining/FeatureTrainingCarousel.tsx
ImageResizeMode src/components/Image/types.ts, src/components/ImageWithSizeCalculation.tsx
TextInputPasteEventData src/components/Composer/implementation/index.native.tsx

No other *Static type (LinkingStatic, PixelRatioStatic, …) is imported.

Fix

  • AlertStatic → Alert. The value is also the type.
  • CellRendererProps → the props of FlatList's CellRendererComponent, via React.ComponentProps<typeof FlatList>.
  • ViewToken / ViewabilityConfig → the parameter and viewabilityConfig prop types of FlatList.
  • ImageResizeMode → the resizeMode prop type of Image.
  • TextInputPasteEventData → the event type of TextInput's paste handler.

Activity

  1. self-assigned this
    on Sep 21, 2026
  2. roryabraham commented on Sep 22, 2026

    @roryabraham
    ContributorAuthor

    Opened #101821 for review

  3. roryabraham commented on Sep 22, 2026

    @roryabraham
    ContributorAuthor

    optimistically closing this as no payments are due and it's unlikely the types-only PR will be reverted

  4. melvin-bot commented on Sep 24, 2026

    @melvin-bot

    @roryabraham

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.92-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions