Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check for surplus values in sheet detents array not only in dev mode #2387

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Oct 4, 2024

Description

Previous code reduced detent array to three values on Android only in dev mode - this is undesired.
We want to always do it.

Changes

Moved the slicing operation out of check for dev mode.

Test code and steps to reproduce

Test1649, pass more than 3 values on Android, see that it works.

Checklist

  • Ensured that CI passes

@kkafar kkafar merged commit e864aaf into main Oct 4, 2024
3 checks passed
@kkafar kkafar deleted the @kkafar/fix-check-for-surplus-values-on-android branch October 4, 2024 12:02
ja1ns pushed a commit to WiseOwlTech/react-native-screens that referenced this pull request Oct 9, 2024
…mode (software-mansion#2387)

## Description

Previous code reduced detent array to three values on Android only in
dev mode - this is undesired.
We want to always do it.

## Changes

Moved the slicing operation out of check for dev mode.

## Test code and steps to reproduce

`Test1649`, pass more than 3 values on Android, see that it works.

## Checklist

- [ ] Ensured that CI passes
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.

2 participants