Support optional flingSpeedLimit prop in CalendarList - #2779
Open
zhengjf123 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds optional
flingSpeedLimitprop support toCalendarList.When
flingSpeedLimitis explicitly provided, it is forwarded to the underlyingFlatList. When it is not provided,CalendarListbehavior remains unchanged.Why
Some React Native platform implementations support a
flingSpeedLimitprop onFlatList. At the moment,CalendarListdoes 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
flingSpeedLimit?: numbertoCalendarListPropsflingSpeedLimitto the underlyingFlatListonly when explicitly providedPropTypes.numbersupport forflingSpeedLimitcalendarList.api.jsonto document the propBehavior
flingSpeedLimitis not passedFlatListprop can make use of itValidation