Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
05d2e73
Use react-native-gesture-handler's ScrollView and FlatList.
hossein-zare Mar 12, 2023
e38ea1b
Update version and Add react-native-gesture-handler to dependencies.
hossein-zare Mar 12, 2023
717234c
Update package.json
hossein-zare Mar 17, 2023
6e8635d
[feat] add customItemValueDelimiter
JHeigle May 15, 2023
7370be7
[feat] add customItemValueDelimiter
JHeigle May 15, 2023
2b782e4
ci: added ci workflow and updated eslint and prettier configs
taeh98 Jul 23, 2023
15b2e35
Merge pull request #682 from taeh98/dev-5.x
taeh98 Aug 21, 2023
143f8b5
fix: reformatted src files with eslint and prettier to fix most errors
taeh98 Aug 21, 2023
2fc8312
Merge pull request #690 from taeh98/fix-ci
taeh98 Aug 21, 2023
8c02710
fix: ci job to find outdated deps, updated deps, removed empty jsdoc
taeh98 Aug 21, 2023
13de7af
Merge pull request #691 from taeh98/update-ci-and-deps
taeh98 Aug 21, 2023
4614fb9
added no-console eslint rule
taeh98 Aug 24, 2023
ca8afd8
updated deps
taeh98 Aug 24, 2023
bd36006
Merge pull request #696 from taeh98/sort-index.d.ts
taeh98 Aug 24, 2023
05297d0
chore: add ci checks, order fields, fix types, and simplify logic
taeh98 Aug 30, 2023
ff853e1
Merge pull request #698 from taeh98/values-error
taeh98 Aug 31, 2023
7d7d958
feat: add korean translation (#694)
prkgnt Aug 31, 2023
c4ad9a8
fix: fixed prettier error in korean translation (#699)
taeh98 Aug 31, 2023
cba9916
chore: combined and renamed ci jobs (#700)
taeh98 Aug 31, 2023
d5116e0
chore: added npm version badge and link to edit docs to README.md (#701)
taeh98 Sep 1, 2023
c5ba9f1
fix: remove unneeded error; also add license badge and usage info to …
taeh98 Sep 1, 2023
dbebca2
Update index.d.ts
hossein-zare Sep 4, 2023
83a0adc
chore: added patch-package to README.md (#704)
taeh98 Sep 5, 2023
e3f4d09
fix: corrected SetStateCallback and SetStateValue to SetStateAction i…
taeh98 Sep 5, 2023
142fdea
chore: added runnable examples subdir and updated README accordingly …
taeh98 Sep 5, 2023
9c7fd11
chore: added basic usage code to README.md (#709)
taeh98 Sep 8, 2023
69a56ba
chore: add @typescript-eslint/stylistic config and grammar fix in REA…
taeh98 Oct 1, 2023
747fda0
chore: refactored screenshots and added badges to README.md (#714)
taeh98 Oct 4, 2023
228d035
chore: added ci lints and script to update dependencies and format co…
taeh98 Oct 4, 2023
e9552a7
chore: changed screenshot links in README.md to raw files (#716)
taeh98 Oct 4, 2023
7ca9816
chore: fixed yaml lint errors (#717)
taeh98 Oct 7, 2023
3e04817
chore: updated npm dependencies (#718)
taeh98 Oct 7, 2023
bd1d288
chore: made CONTRIBUTING.md
taeh98 Oct 7, 2023
09c6364
Merge pull request #719 from taeh98/contributing
hossein-zare Oct 7, 2023
0d9ba76
fix(typing): add ImageStyle to arrowIconStyle type
murat-mehmet Jan 11, 2024
0d0857f
Fix for custom renderListItem not being selectable
VolkerLieber Jan 20, 2024
0f0e8fd
fix(typing): add ImageStyle to tickIconStyle type
murat-mehmet Jan 26, 2024
ab321ed
Fix: modalTitleStyle overwritten by textStyle
AounNaqvi173 Feb 12, 2024
c7a6bb5
feat: add Chinese translation
Louis-C7 Jul 12, 2024
0060cea
[fix] add missing comma
JHeigle Oct 4, 2024
2a75a41
Merge branch 'dev-5.x' of https://github.com/hossein-zare/react-nativ…
JHeigle Oct 4, 2024
43cc9d9
[chore] add customItemValueDelimiter property type
JHeigle Oct 4, 2024
109be23
feat: add clear search field functionality on item select
Sujalkumar12 Oct 23, 2024
13946d7
refactor: 💡 Replaced the deprecated SafeAreaView from react-nat
FillipeDiord Sep 26, 2025
9a11e54
Merge pull request #735 from murat-mehmet/patch-1
hossein-zare Jun 28, 2026
a4abfa6
Merge pull request #783 from FillipeDiord/refactor/safeareaview-update
hossein-zare Jun 28, 2026
7a5aeb1
Merge pull request #759 from Louis-C7/dev-5.x
hossein-zare Jun 28, 2026
92bfd50
Merge pull request #670 from JHeigle/dev-5.x
hossein-zare Jun 28, 2026
52c640c
Merge pull request #738 from VolkerLieber/dev-5.x
hossein-zare Jun 28, 2026
68a88dc
Merge pull request #742 from AounNaqvi173/dev-5.x
hossein-zare Jun 28, 2026
cf54a48
Merge branch 'dev-5.x' into feature/clear-text-on-select-item
hossein-zare Jun 28, 2026
033c8e1
Merge pull request #767 from Sujalkumar12/feature/clear-text-on-selec…
hossein-zare Jun 28, 2026
51defb6
Bump version from 5.4.7 to 5.4.8
hossein-zare Jun 28, 2026
714c651
Merge pull request #789 from hossein-zare/5.x
hossein-zare Jun 28, 2026
77f97f0
Bump version to 5.4.9 in package.json
hossein-zare Jun 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# don't ever lint node_modules
node_modules
# don't lint build output (make sure it's set to your correct build folder name)
package-lock.json
# don't lint build output
build
dist
# don't lint nyc coverage output
coverage
# don't lint coverage output
coverage
# don't lint workflows etc
.github
.idea
.vscode
# unsupported file types
*.yaml
*.yml
*.md
87 changes: 0 additions & 87 deletions .eslintrc.js

This file was deleted.

109 changes: 109 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
# docs at: https://eslint.org/docs/latest/use/configure/configuration-files
env:
browser: true
es2021: true
react-native/react-native: true
extends:
- airbnb
- airbnb-typescript
- airbnb/hooks
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/stylistic
- plugin:eslint-comments/recommended
- plugin:import/errors
- plugin:import/recommended
- plugin:import/typescript
- plugin:import/warnings
- plugin:jsdoc/recommended
- plugin:json/recommended
- plugin:jsx-a11y/recommended
- plugin:react-hooks/recommended
- plugin:react-native/all
- plugin:react/recommended
- prettier
globals:
JSX: true
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: latest
project: ./tsconfig.json
sourceType: module
plugins:
- '@typescript-eslint'
- eslint-comments
- eslint-plugin-json
- import
- jsdoc
- jsx-a11y
- react
- react-hooks
- react-native
rules:
'@typescript-eslint/array-type':
- error
- default: 'generic'
readonly: 'generic'
'@typescript-eslint/explicit-function-return-type': error
'@typescript-eslint/explicit-module-boundary-types': error
'@typescript-eslint/no-explicit-any':
- error
- fixToUnknown: false
ignoreRestArgs: false
'@typescript-eslint/no-shadow': error
'@typescript-eslint/no-use-before-define': error
camelcase: error
comma-dangle:
- error
- always-multiline
comma-style:
- error
- last
import/extensions:
- error
- never
import/no-unresolved: error
jsdoc/check-indentation: error
jsdoc/no-bad-blocks: error
jsdoc/require-description: error
jsdoc/require-file-overview: error
jsdoc/require-throws: error
jsx-quotes:
- error
- prefer-single
linebreak-style:
- error
- unix
max-lines:
- error
- 300
max-lines-per-function:
- warn
- max: 20
no-console: error
no-duplicate-imports: error
no-multi-spaces: error
no-shadow: error
no-template-curly-in-string: error
no-trailing-spaces: error
no-undef: error
no-use-before-define: warn
react-native/no-inline-styles: warn
react/jsx-filename-extension:
- error
- extensions:
- .ts
- .tsx
- .js
- .jsx
react/prop-types: error
sort-imports: warn
sort-keys:
- error
- asc
- caseSensitive: true
minKeys: 2
natural: true
Binary file added .github/assets/images/screenshots/badges.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/images/screenshots/badges_full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/images/screenshots/basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 130 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
---
# file format documented at:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: CI

on: [push, pull_request]

jobs:
# TODO: check project builds/compiles correctly? maybe with tsc?
# TODO: add tests including coverage (jest and mocha/chai?)

lint_src_files:
name: Lint source files
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- name: Lint source files with Prettier
run: >
npx prettier --check
.
--config
.prettierrc.yaml
--ignore-path
.prettierignore
- name: Lint source files with ESLint
run: >
npx eslint
.
--config
.eslintrc.yaml
--ignore-path
.eslintignore

check-npm-dependencies:
name: Check npm dependencies
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- name: Scan for known vulnerabilities in dependencies with npm audit
run: >
npm audit
--audit-level
critical
- name: Check for unused and missing dependencies with depcheck
run: >
npx depcheck
--ignores
typescript,prettier
- name: Check for outdated packages with npm outdated
run: npm outdated
- name: Check for outdated packages with npm-check-updates
run: npx npm-check-updates

find_todos:
name: Search for TODOs etc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Search for TODO, FIXME, and BUG statements in source files
run: >
if grep
--recursive
--extended-regexp
--with-filename
--line-number
--color=always
"TODO|FIXME|BUG"
./src;
then exit 1;
else
echo "No TODO, FIXME, or BUG statements found in source files.";
fi

typos_spell_check:
name: Check spelling with typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check spelling with typos
uses: crate-ci/typos@master
with:
config: .typos.toml

lint_markdown_files:
name: Lint Markdown files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: articulate/actions-markdownlint@v1
with:
files: '*.md'
ignore: '**/node_modules'

lint_yaml_files:
name: Lint YAML files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ibiqlik/action-yamllint@v3

lint_shell_script_files:
name: Lint shell scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azohra/shell-linter@latest

commitlint:
name: Enforce Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: >
Check the commits conform to the Conventional
Commits specification with commitlint
uses: wagoid/commitlint-github-action@v5

# TODO: check PRs have all changes (squashed) in(to) 1 commit
# TODO: make semver automatically bump version num and update changelog
# TODO: publish new release if version num bumped and CI passes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: "🚀 publish"

on:
Expand All @@ -15,4 +16,4 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_ACCESS_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_ACCESS_TOKEN}}
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules

package-lock.json
.vscode/*
#package-lock.json
# package-lock.json should be in source control.
# see here: https://stackoverflow.com/questions/44206782/do-i-commit-the-package-lock-json-file-created-by-npm-5
.vscode/*
.idea
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.github/
node_modules/

examples
package-lock.json
16 changes: 16 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# don't ever lint node_modules
node_modules
package-lock.json
# don't lint build output
build
dist
# don't lint coverage output
coverage
# don't lint workflows etc
.github
.idea
.vscode
# unsupported file types
*.yaml
*.yml
*.md
Loading
Loading