Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Types: FlashListProps imports ViewabilityConfig from react-native, removed in RN 0.87+

Open Beginner friendly
#2,540 0 comments 0 reactions 0 assignees View on GitHub

@efegokdemir is already working on this.

Since Oct 18, 2026.

  • #2541 by @efegokdemir — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
react-native, typescript
Domain
mobile-dev

Research direction

Start with src/FlashListProps.ts and inspect how ViewabilityConfig is used in the FlashListProps type. Replace the unavailable React Native type import with an appropriate local definition, then investigate why horizontal must be included in the omitted ScrollViewProps keys. Run the minimal strict TypeScript reproduction and the project type-check to confirm compatibility with React Native 0.87 and 0.88.

Written by the indexing model from the issue text.

Description

Description

src/FlashListProps.ts imports ViewabilityConfig from react-native. React Native 0.87 and 0.88 no longer export that type, so type-checking code that uses FlashList fails with TS2305 on that import.

We also needed "horizontal" in the Omit<ScrollViewProps, ...> of FlashListProps to get the props to type-check. We have not isolated why, so please treat that part as a question.

Current behavior

With react-native 0.88.0, tsc --strict reports error TS2305: Module '"react-native"' has no exported member 'ViewabilityConfig'. on the import in FlashListProps.ts.

Expected behavior

The package type-checks against react-native 0.87 and 0.88 without errors.

Reproduction

Minimal steps (no app needed):

  1. Create a file with:
import type { ViewabilityConfig } from "react-native";
export const v: ViewabilityConfig | undefined = undefined;
  1. Run npx tsc --noEmit --strict in a project with react-native 0.88.0.

Environment: @shopify/flash-list 2.3.3 (latest on npm), react-native 0.88.0, Expo SDK 58.

Expo Snack or minimal reproduction link:
Not yet. The minimal snippet above is the repro. A Snack link can follow if the maintainers need one.

Suggested fix

Define the viewability config shape in FlashListProps.ts instead of importing it from react-native.

Dominant language
TypeScript
Stars
7.2k
Forks
401
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Shopify/flash-list

All issues in Shopify/flash-list

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.