feat: expose none
& largest
values for sheetLargestUndimmedDetent
prop
#2359
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.
Description
I'm exposing two new options for
sheetLargestUndimmedDetent
prop:none
- denoting that dimming view will be always present,largest
- denoting that dimming view will never be present.Previously to achieve the effect of
none
you had to either rely on default or pass-1
raw value.Similarly achieving the effect of
largest
required user to set a numeric value and update it everytime new detent was added / removed.Note
As I wrote this description, new idea popped out - instead of exposing numeric constant just add some string options, as withsheetAllowedDetents
(it is an array or some predefined string constants).What would be the API though?
sheetLargestUndimmedDetent: 'none'
? What's the wording here?Done! ^^^
react-navigation
PR:Changes
Replaced raw
-1
with constantsnone
andlargest
.Test code and steps to reproduce
Test1649
Checklist