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: Search and select all issues #37

Merged
merged 2 commits into from
Sep 7, 2023
Merged

fix: Search and select all issues #37

merged 2 commits into from
Sep 7, 2023

Conversation

azeezat
Copy link
Owner

@azeezat azeezat commented Sep 7, 2023

Description

  1. For the issue with the select all, I checked it further and realized the root cause was the use of a mutated array modifiedOptions in the selectAll function. I updated the array to use the optionsCopy which is the original array and it seems to work fine

  2. For the issue with the placeholder, I added a new prop that would give the users the power to customize it at will. textInputProps will be able to take any kind of prop that would typically be accepted by any React Native's TextInput

 searchControls={{
              searchInputStyle: {
                backgroundColor: 'yellow',
                color: 'blue',
                fontWeight: '900',
              },
              textInputProps: {
                placeholder: 'Search anything here',
                placeholderTextColor: 'gray',
              },
            }}

Fixes #36

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@azeezat azeezat marked this pull request as ready for review September 7, 2023 07:34
@azeezat azeezat merged commit 895bb38 into main Sep 7, 2023
3 checks passed
@azeezat azeezat deleted the search-fixes branch September 8, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant