Skip to content

Ability to search with currency#508

Open
azeez1776 wants to merge 17 commits intoxcarpentier:masterfrom
SafiriApps:master
Open

Ability to search with currency#508
azeez1776 wants to merge 17 commits intoxcarpentier:masterfrom
SafiriApps:master

Conversation

@azeez1776
Copy link
Copy Markdown

Included currency among the keys in fuse option, allow search with currency.

azeez1776 and others added 17 commits April 24, 2023 23:25
…g suite

- Updated ESLint ignore patterns to include '*.test.ts'.
- Changed ESLint rule from '@typescript-eslint/ban-types' to '@typescript-eslint/no-restricted-types' with suggestions for better type usage.
- Upgraded Expo SDK version from 49.0.0 to 52.0.0 and added new Android architecture support.
- Added new scripts in package.json for CI testing.
- Updated various dependencies to their latest versions for improved performance and security.
- Introduced new test files for AnimatedModal, CountryFilter, CountryList, CountryModal, and others to enhance test coverage.
- Refactored components to use default props and improved code structure for better readability.
- Added a test to ensure Fuse reinitializes correctly when the data content changes but retains the same length, preventing stale data usage.
- Updated the search function to compare data references instead of lengths for reinitialization of Fuse.
- Improved the useEffect in CountryModal to include additional dependencies for better performance and to prevent potential issues.
…nent

- Updated the build script to create the assets directory more efficiently.
- Memoized the content in CountryModal to improve performance and prevent unnecessary re-renders.
- Adjusted useEffect dependencies in CountryModal for better clarity and functionality.
- Modified the build script to use a specific TypeScript configuration file for building.
- Introduced a new tsconfig.build.json to define build-specific compiler options and include paths.
- Added a prepack script to ensure the build process runs before packaging.
- Introduced a comprehensive guide on React Native optimization, including best practices for bundle analysis, code splitting, and memory management.
- Added multiple reference documents covering topics such as asset delivery, tree shaking, and profiling techniques.
- Included various images to support the documentation, enhancing visual understanding of concepts.
- Based on "The Ultimate Guide to React Native Optimization" by Callstack.
- Updated .eslintignore to include new example directory.
- Removed unused dependencies from package.json and added @legendapp/list as a peer dependency.
- Improved TypeScript configuration in tsconfig.json for better compatibility.
- Added example app with various screens demonstrating the country picker functionality.
- Refactored tests to mock @legendapp/list for compatibility with FlatList.
- Updated README.md to reflect new example app and usage instructions.
- Introduced a visibility state for modals in multiple screens including Basic, Custom Rendering, Display Options, Filtering, Prop Matrix, Quick Start, Theming, and Translation.
- Added buttons to open modals for selecting countries, enhancing user interaction.
- Updated modal properties to manage visibility and open/close actions effectively.
- Revised subtitle to clarify filtering functionality.
- Removed flatListProps from the country picker component as it is no longer needed.
- Added support for translation in the CountryPicker component.
- Improved styling and layout in CountryList for better user experience.
- Wrapped SafeAreaView in CountryModal with SafeAreaProvider for better compatibility.
- Updated package.json to reflect new dependency versions and removed unused ones.
- Refactored various components to improve code clarity and maintainability.
- Added Swahili translations for various countries in the countries-emoji.json file.
- Included 'swa' (Swahili) in the TranslationLanguageCodeList in types.ts for language support.
- Ensured consistency in formatting for currency and calling codes in the JSON data.
- Removed the usePickerSettings hook and its references from various screens to streamline the country picker implementation.
- Updated the CountryPicker component to directly accept props for filtering and emoji display.
- Enhanced the filtering functionality across multiple screens by adding withFilter and withEmoji props.
- Deleted unused files related to display options, prop matrix, and quick start to clean up the codebase.
- Imported ThemingType from '@callstack/react-theme-provider' for improved type safety.
- Refactored theming setup to use a separate variable for clarity.
- Exported ThemeProvider and useTheme with explicit types for better maintainability.
- Removed deprecated properties from app.json and updated SDK version.
- Simplified metro.config.js by utilizing Expo's default configuration.
- Renamed TypeScript type checking script in package.json for clarity.
- Updated tsconfig.json to use 'bundler' for module resolution.
- Cleaned up package.json by updating dependencies and removing unused ones.
- Added 'scheme' property to example app's app.json for better linking support.
- Eliminated the mock for react-async-hook in CountryList.test.tsx, CountryPicker.test.tsx, and FlagButton.test.tsx to streamline testing and reduce redundancy.
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