Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Sticky header container blocks touch events on content beneath it

Aperta Adatta ai principianti
#2,249 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
react-native, typescript
Ambito
mobile-dev

Direzione di ricerca

Inizia aprendo StickyHeaders.tsx e riproduci il problema con l’Expo Snack collegato usando stickyHeaderIndices e numColumns maggiore di uno. Controlla il comportamento al tocco di CompatAnimatedView e verifica che sia possibile premere il primo elemento sotto l’intestazione sticky, mantenendo funzionali le interazioni con l’intestazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

agent-triage bug P1

Description

We are using a two column layout to display events with sticky day headers. Because of this unique arrangement, the stickyheader is blocking interaction from any elements beneath it.

When using stickyHeaderIndices with numColumns > 1, the sticky header's CompatAnimatedView container (position: absolute, left: 0, right: 0, zIndex: 2 in StickyHeaders.tsx) spans the full width of the list and intercepts all touch events on the content directly below it.

In our case this means the first item rendered next to a sticky header cannot be pressed.
Theoretically the fix is a one-line change: adding pointerEvents="box-none" to the CompatAnimatedView in StickyHeaders.tsx, which makes the container itself transparent to touches while keeping its children (the header content) interactive.

Current behavior

I've produced a working example:
https://snack.expo.dev/@pridgeyt/flashlist-stickyheader?platform=web

Expected behavior

When pressing on a header, the input event is not blocked and is passed through.

Reproduction

Expo Snack or minimal reproduction link:

Expo Snack Reproduction

Platform

  • iOS
  • Android
  • Web (if applicable)

Environment

React Native info output:
System:
  OS: macOS 26.3.1
  CPU: (14) arm64 Apple M4 Max
  Memory: 353.56 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.15.1
    path: /Users/pridgey/.nvm/versions/node/v22.15.1/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.9.2
    path: /Users/pridgey/.nvm/versions/node/v22.15.1/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/pridgey/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.0
      - iOS 26.0
      - macOS 26.0
      - tvOS 26.0
      - visionOS 26.0
      - watchOS 26.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.26094.121.2513.14007798
  Xcode:
    version: 26.0.1/17A400
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 21.0.8
    path: /opt/homebrew/opt/openjdk@21/bin/javac
  Ruby:
    version: 3.4.7
    path: /Users/pridgey/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 18.0.0
    wanted: 18.0.0
  react:
    installed: 19.2.0
    wanted: 19.2.0
  react-native:
    installed: 0.83.4
    wanted: 0.83.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

FlashList version: 2.2.2

Additional context

There appears to be a closed issue from 2020:
https://github.com/facebook/react-native/issues/28963

Checklist

  • I've searched existing issues and couldn't find a duplicate
  • I've provided a minimal reproduction (Expo Snack preferred)
  • I'm using the latest version of @shopify/flash-list
  • I've included all required information above
Lingua principale
TypeScript
Stelle
7.2k
Fork
392
Merge medio
1g 3h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Shopify/flash-list

Tutte le issue di Shopify/flash-list

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.