Skip to content

Support optional flingSpeedLimit prop in CalendarList - #2779

Open
zhengjf123 wants to merge 1 commit into
wix:masterfrom
zhengjf123:feat/calendar-list-fling-speed-limit
Open

Support optional flingSpeedLimit prop in CalendarList#2779
zhengjf123 wants to merge 1 commit into
wix:masterfrom
zhengjf123:feat/calendar-list-fling-speed-limit

Conversation

@zhengjf123

Copy link
Copy Markdown

Summary

This PR adds optional flingSpeedLimit prop support to CalendarList.

When flingSpeedLimit is explicitly provided, it is forwarded to the underlying FlatList. When it is not provided, CalendarList behavior remains unchanged.

Why

Some React Native platform implementations support a flingSpeedLimit prop on FlatList. At the moment, CalendarList does not expose this prop, so passing it from the app layer has no effect.

This change allows consumers to opt in to that behavior without affecting existing users.

What changed

  • Added optional flingSpeedLimit?: number to CalendarListProps
  • Forward flingSpeedLimit to the underlying FlatList only when explicitly provided
  • Added PropTypes.number support for flingSpeedLimit
  • Updated calendarList.api.json to document the prop

Behavior

  • No behavior change by default
  • No effect when flingSpeedLimit is not passed
  • Platforms that support this FlatList prop can make use of it
  • Existing Android/iOS behavior remains unchanged unless consumers explicitly opt in

Validation

  • Verified the prop is conditionally forwarded only when provided
  • Confirmed no lint errors in the modified files
  • Type definition is included so TS consumers can use the prop directly

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant