├── .eslintrc.js
├── .gitattributes
├── .github
└── dependabot.yml
├── .gitignore
├── .npmignore
├── .prettierignore
├── .prettierrc.js
├── CHANGELOG.md
├── LICENSE
├── README.md
├── assets
├── header.png
└── screenshots
│ ├── example-section-list.jpg
│ └── performance.gif
├── docs
├── .gitignore
├── README.md
├── babel.config.js
├── docs
│ ├── basics
│ │ ├── _category_.json
│ │ ├── columns-list.md
│ │ ├── example.md
│ │ ├── sections-list.md
│ │ └── standard-list.md
│ ├── extras
│ │ ├── _category_.json
│ │ └── migrate-flatlist.md
│ ├── getting-started.md
│ ├── how-contribute.md
│ ├── intro.md
│ ├── methods.md
│ └── props.md
├── docusaurus.config.js
├── package.json
├── sidebars.js
├── src
│ └── css
│ │ └── custom.css
├── static
│ ├── .nojekyll
│ └── img
│ │ ├── favicon.ico
│ │ └── logo.svg
└── yarn.lock
├── example
├── .expo-shared
│ ├── README.md
│ └── assets.json
├── .gitignore
├── App.js
├── app.json
├── assets
│ ├── adaptive-icon.png
│ ├── favicon.ico
│ ├── favicon.png
│ ├── icon.png
│ └── splash.png
├── babel.config.js
├── package.json
├── src
│ ├── Home.jsx
│ ├── data
│ │ ├── data.json
│ │ └── sections.json
│ ├── lists
│ │ ├── ColumnsList.jsx
│ │ ├── CompareList.jsx
│ │ ├── List.jsx
│ │ ├── MultiSelectList.jsx
│ │ ├── SectionList.jsx
│ │ ├── SelectList.jsx
│ │ └── components
│ │ │ └── Block.jsx
│ └── utils
│ │ └── generate.js
└── yarn.lock
├── lib
├── BigList.jsx
├── BigListItem.jsx
├── BigListItemRecycler.js
├── BigListPlaceholder.jsx
├── BigListProcessor.js
├── BigListSection.jsx
├── assets
│ └── placeholder.png
├── index.d.ts
├── index.js
└── utils.js
├── package.json
├── scripts
└── dist.js
├── tsconfig.json
└── yarn.lock
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | parser: "babel-eslint",
4 | extends: [
5 | "@react-native-community",
6 | "plugin:react/recommended",
7 | "plugin:react-native/all",
8 | "standard",
9 | "prettier",
10 | ],
11 | plugins: ["jest", "react-hooks", "prettier", "simple-import-sort", "import"],
12 | rules: {
13 | "simple-import-sort/exports": "error",
14 | "simple-import-sort/imports": [
15 | "warn",
16 | {
17 | groups: [
18 | [
19 | // Packages. `react` related packages come first.
20 | "^react$",
21 | "^prop-types$",
22 | "^react-native$",
23 | "^react-native",
24 | // Others libs
25 | "^[A-Za-z0-9]",
26 | "^",
27 | ],
28 | // Relative imports
29 | [
30 | // Side effect imports.
31 | "^\\u0000",
32 | // Parent imports. Put `..` last.
33 | "^\\.\\.(?!/?$)",
34 | "^\\.\\./?$",
35 | // Other relative imports. Put same-folder imports and `.` last.
36 | "^\\./(?=.*/)(?!/?$)",
37 | "^\\.(?!/?$)",
38 | "^\\./?$",
39 | ],
40 | ],
41 | },
42 | ],
43 | "import/first": "warn",
44 | "import/newline-after-import": "warn",
45 | "import/no-duplicates": "warn",
46 | "react-native/no-raw-text": 0,
47 | "react-native/no-inline-styles": 0,
48 | "react/prop-types": 0,
49 | },
50 | };
51 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: npm
4 | directory: "/"
5 | schedule:
6 | interval: daily
7 | open-pull-requests-limit: 10
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | package-lock.json
6 |
7 | node_modules
8 |
9 | # Xcode
10 | #
11 | build/
12 | *.pbxuser
13 | !default.pbxuser
14 | *.mode1v3
15 | !default.mode1v3
16 | *.mode2v3
17 | !default.mode2v3
18 | *.perspectivev3
19 | !default.perspectivev3
20 | xcuserdata
21 | *.xccheckout
22 | *.moved-aside
23 | DerivedData
24 | *.hmap
25 | *.ipa
26 | *.xcuserstate
27 | project.xcworkspace
28 |
29 | # Android/IntelliJ
30 | #
31 | build/
32 | .idea
33 | .gradle
34 | local.properties
35 | *.iml
36 |
37 | # node.js
38 | #
39 | node_modules/
40 | npm-debug.log
41 | yarn-error.log
42 |
43 | # BUCK
44 | buck-out/
45 | \.buckd/
46 | *.keystore
47 |
48 | # fastlane
49 | #
50 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
51 | # screenshots whenever they are needed.
52 | # For more information about the recommended setup visit:
53 | # https://docs.fastlane.tools/best-practices/source-control/
54 |
55 | */fastlane/report.xml
56 | */fastlane/Preview.html
57 | */fastlane/screenshots
58 |
59 | # Bundle artifact
60 | *.jsbundle
61 |
62 | # Distribute
63 | dist/
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | # Node Modules
2 | **/node_modules
3 | node_modules
4 | # Example
5 | example
6 | # Github
7 | .github/
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | example/.expo
2 | example/.expo-shared
3 | example/web-build
4 | example/node_modules
5 | dist/
6 | docs/.docusaurus
7 | docs/build
--------------------------------------------------------------------------------
/.prettierrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | bracketSpacing: true,
3 | bracketSameLine: false,
4 | singleQuote: false,
5 | trailingComma: "all",
6 | tabWidth: 2,
7 | semi: true,
8 | };
9 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4 |
5 | ## [1.6.0](https://github.com/marcocesarato/react-native-big-list/compare/v1.5.6...v1.6.0) (2022-11-06)
6 |
7 |
8 | ### Features
9 |
10 | * add support for native animation on scroll ([2a84fb7](https://github.com/marcocesarato/react-native-big-list/commit/2a84fb7a0ff59e3482d3fc3ba97b517989ad9751))
11 |
12 |
13 | ### Bug Fixes
14 |
15 | * rename animatedOffsetValues to nativeOffsetValues in index.d.ts ([06e3f66](https://github.com/marcocesarato/react-native-big-list/commit/06e3f66914e846e65791d0cca9e1df00ebf87b88))
16 |
17 | ### [1.5.6](https://github.com/marcocesarato/react-native-big-list/compare/v1.5.5...v1.5.6) (2022-10-22)
18 |
19 |
20 | ### Bug Fixes
21 |
22 | * allow overwriting elevation in style of section header ([be68fb1](https://github.com/marcocesarato/react-native-big-list/commit/be68fb16382bc2a10dd0728059e4726f81d1a4eb))
23 |
24 | ### [1.5.5](https://github.com/marcocesarato/react-native-big-list/compare/v1.5.4...v1.5.5) (2022-10-12)
25 |
26 | ### [1.5.4](https://github.com/marcocesarato/react-native-big-list/compare/v1.5.3...v1.5.4) (2022-02-28)
27 |
28 |
29 | ### Bug Fixes
30 |
31 | * regex-ify UNSAFE_ autobind ([b9205ec](https://github.com/marcocesarato/react-native-big-list/commit/b9205ec608f7ddd8977f0a2afc3b42e19bc68260))
32 |
33 | ### [1.5.3](https://github.com/marcocesarato/react-native-big-list/compare/v1.5.2...v1.5.3) (2022-02-23)
34 |
35 | ### Bug Fixes
36 |
37 | * onViewableItemsChanged function issues ([7c67cb](https://github.com/marcocesarato/react-native-big-list/commit/7c67cbd0e09461e9e8025f08932a5053723e43a4)), closes [#120](https://github.com/marcocesarato/react-native-big-list/issues/141)
38 |
39 |
40 | ### [1.5.2](https://github.com/marcocesarato/react-native-big-list/compare/v1.5.1...v1.5.2) (2022-01-20)
41 |
42 |
43 | ### Bug Fixes
44 |
45 | * fallback scroll view component ([76719a7](https://github.com/marcocesarato/react-native-big-list/commit/76719a7af578c2db3ef3028d88777e635fda969f))
46 |
47 | ### [1.5.1](https://github.com/marcocesarato/react-native-big-list/compare/v1.5.0...v1.5.1) (2022-01-19)
48 |
49 |
50 | ### Bug Fixes
51 |
52 | * add scroll view components types ([131c706](https://github.com/marcocesarato/react-native-big-list/commit/131c7065319024aa2b6e7f1a5db10d10c4fd3bc3)), closes [#141](https://github.com/marcocesarato/react-native-big-list/issues/141)
53 |
54 | ## [1.5.0](https://github.com/marcocesarato/react-native-big-list/compare/v1.4.3...v1.5.0) (2022-01-15)
55 |
56 |
57 | ### Features
58 |
59 | * custom scroll view component ([0c7f425](https://github.com/marcocesarato/react-native-big-list/commit/0c7f425bcc7f25c80514414b1ff50473adb63848))
60 |
61 | ### [1.4.3](https://github.com/marcocesarato/react-native-big-list/compare/v1.4.2...v1.4.3) (2021-09-30)
62 |
63 | ### Features
64 |
65 | - Improve typing and documentation
66 |
67 | ## [1.4.2](https://github.com/marcocesarato/react-native-big-list/compare/v1.4.1...v1.4.2) (2021-09-02)
68 |
69 | ### Bug Fixes
70 |
71 | - Get item offset with height as function [#47](https://github.com/marcocesarato/react-native-big-list/issues/47) ([435fe4](https://github.com/marcocesarato/react-native-big-list/commit/435fe489d3b3a445ef81a6abd9d63353703681f5))
72 | - Get item offset with height as function on sections [#47](https://github.com/marcocesarato/react-native-big-list/issues/47) ([048b5a](https://github.com/marcocesarato/react-native-big-list/commit/048b5a6a76a302c62b9c792bbab702916f1b8e73))
73 | - Scroll to methods [#57](https://github.com/marcocesarato/react-native-big-list/issues/57) ([5bc699](https://github.com/marcocesarato/react-native-big-list/commit/5bc699573521319136254d39d69b42c7643c754c))
74 |
75 | ### [1.4.1](https://github.com/marcocesarato/react-native-big-list/compare/v1.4.0...v1.4.1) (2021-08-08)
76 |
77 | ### Bug Fixes
78 |
79 | - make style prop merge writable ([56d8a49](https://github.com/marcocesarato/react-native-big-list/commit/56d8a49a18170dd2d446bc41e434c9c11ceac905)), closes [#43](https://github.com/marcocesarato/react-native-big-list/issues/43)
80 |
81 | ## [1.4.0](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.16...v1.4.0) (2021-08-03)
82 |
83 | ### Features
84 |
85 | - add inverted property ([a26f5c9](https://github.com/marcocesarato/react-native-big-list/commit/a26f5c92ece71d57322334bd3f2b64c313f2fea5)), closes [#31](https://github.com/marcocesarato/react-native-big-list/issues/31)
86 |
87 | ### Bug Fixes
88 |
89 | - section elevation on android ([114a831](https://github.com/marcocesarato/react-native-big-list/commit/114a8316b8d4cc6c919e48b7983c048430e27fb0)), closes [#38](https://github.com/marcocesarato/react-native-big-list/issues/38)
90 |
91 | ### [1.3.16](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.15...v1.3.16) (2021-07-21)
92 |
93 | ### Bug Fixes
94 |
95 | - empty item after header ([a7297ac](https://github.com/marcocesarato/react-native-big-list/commit/a7297acfd22849599a688c7cd5a26ed59b658473)), closes [#35](https://github.com/marcocesarato/react-native-big-list/issues/35)
96 |
97 | ## [1.3.15](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.14...v1.3.15) (2021-06-29)
98 |
99 | ### Bug Fixes
100 |
101 | ##### On Momentum End
102 |
103 | - Trigger on momentum end [#21](https://github.com/marcocesarato/react-native-big-list/issues/21) ([e823a0](https://github.com/marcocesarato/react-native-big-list/commit/e823a0beb85737c5c280778cc90feac777ed149a))
104 |
105 | ---
106 |
107 | ## [1.3.14](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.13...v1.3.14) (2021-06-24)
108 |
109 | ### Bug Fixes
110 |
111 | - Scrolling methods ([c9207f](https://github.com/marcocesarato/react-native-big-list/commit/c9207fa24ce4ee401bed2c063c3250d8c5a3c357))
112 |
113 | ---
114 |
115 | ## [1.3.13](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.12...v1.3.13) (2021-06-23)
116 |
117 | ### Features
118 |
119 | - Add key extractor to assign item state without recycle it [#13](https://github.com/marcocesarato/react-native-big-list/issues/13) ([383b31](https://github.com/marcocesarato/react-native-big-list/commit/383b31be68fff5b266db3244f03d6559fbc6b571))
120 |
121 | ---
122 |
123 | ## [1.3.12](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.10...v1.3.12) (2021-06-20)
124 |
125 | ### Features
126 |
127 | - Hide and show marginals on empty list [#8](https://github.com/marcocesarato/react-native-big-list/issues/8) ([cf5c9f](https://github.com/marcocesarato/react-native-big-list/commit/cf5c9ff8059cfdd70d674153ae93965ab3b304be))
128 |
129 | ### Bug Fixes
130 |
131 | - On viewable items on addition [#8](https://github.com/marcocesarato/react-native-big-list/issues/8) ([b8816d](https://github.com/marcocesarato/react-native-big-list/commit/b8816de462ccd66a3dbef030aa770846a761c3b5))
132 |
133 | ---
134 |
135 | ## [1.3.10](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.9...v1.3.10) (2021-06-20)
136 |
137 | ### Bug Fixes
138 |
139 | ##### TypeScript
140 |
141 | - Make num columns and on viewable items change optional ([58f661](https://github.com/marcocesarato/react-native-big-list/commit/58f6618ffcb638f1913f68741482393e3e3457d8))
142 | - Replace unknown with null and undefined ([e60f2c](https://github.com/marcocesarato/react-native-big-list/commit/e60f2c625ae3719e037bf19bda0668c2173c7556))
143 |
144 | ---
145 |
146 | ## [1.3.9](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.8...v1.3.9) (2021-06-17)
147 |
148 | ### Bug Fixes
149 |
150 | - Static header with sections ([298d2b](https://github.com/marcocesarato/react-native-big-list/commit/298d2bd52c9e99e3477f12ce41b50dec87b6b1c2))
151 |
152 | ---
153 |
154 | ## [1.3.8](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.7...v1.3.8) (2021-06-17)
155 |
156 | ---
157 |
158 | ## [1.3.7](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.6...v1.3.7) (2021-06-17)
159 |
160 | ### Features
161 |
162 | - Add column wrapper style [#6](https://github.com/marcocesarato/react-native-big-list/issues/6) ([2e28c9](https://github.com/marcocesarato/react-native-big-list/commit/2e28c93274cdd1909af98c7e0cf9a8e38facf0df))
163 | - Add on viewable items changed [#8](https://github.com/marcocesarato/react-native-big-list/issues/8) ([0c709e](https://github.com/marcocesarato/react-native-big-list/commit/0c709e29e926a1c85745f0d04a8ba44a28124e1a))
164 |
165 | ##### Placeholder
166 |
167 | - Add placeholder on fast scrolling [#7](https://github.com/marcocesarato/react-native-big-list/issues/7) ([6dc75b](https://github.com/marcocesarato/react-native-big-list/commit/6dc75b4fc2e1688cfc79b9eafc45150b134bf29b))
168 |
169 | ### Bug Fixes
170 |
171 | - Disable placeholder prop ([1e085b](https://github.com/marcocesarato/react-native-big-list/commit/1e085b1555e57f8c9a0b4f51d974e00851f170f1))
172 | - Force push header and footer items [#6](https://github.com/marcocesarato/react-native-big-list/issues/6) ([7f6f3a](https://github.com/marcocesarato/react-native-big-list/commit/7f6f3ad4a0b3cd805452c8668055a7f823c7be67))
173 | - Issues on performances using sections ([f4413e](https://github.com/marcocesarato/react-native-big-list/commit/f4413ef7a9550072144aa9c97c9289313e6a03e0))
174 | - Viewable items changed result [#8](https://github.com/marcocesarato/react-native-big-list/issues/8) ([f89c7c](https://github.com/marcocesarato/react-native-big-list/commit/f89c7cb077c8129c17e34a047bf5313802cd1a3b))
175 |
176 | ---
177 |
178 | ## [1.3.6](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.5...v1.3.6) (2021-06-13)
179 |
180 | ### Bug Fixes
181 |
182 | - Sections condensed issue ([7517b0](https://github.com/marcocesarato/react-native-big-list/commit/7517b071e61c03bc90a7844a74abb1cbba2b964e))
183 |
184 | ---
185 |
186 | ## [1.3.5](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.4...v1.3.5) (2021-06-12)
187 |
188 | ---
189 |
190 | ## [1.3.4](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.3...v1.3.4) (2021-06-12)
191 |
192 | ---
193 |
194 | ## [1.3.3](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.2...v1.3.3) (2021-06-11)
195 |
196 | ### Bug Fixes
197 |
198 | - Content container style overwritable ([a1dcf9](https://github.com/marcocesarato/react-native-big-list/commit/a1dcf9f63d052575e4c003a6c9ad363b72d584ff))
199 |
200 | ---
201 |
202 | ## [1.3.2](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.1...v1.3.2) (2021-06-11)
203 |
204 | ### Bug Fixes
205 |
206 | - Num columns processor [#5](https://github.com/marcocesarato/react-native-big-list/issues/5) ([815735](https://github.com/marcocesarato/react-native-big-list/commit/815735214eb01e78bb7b66f10b4c8e977cb1c320))
207 |
208 | ---
209 |
210 | ## [1.3.1](https://github.com/marcocesarato/react-native-big-list/compare/v1.3.0...v1.3.1) (2021-06-11)
211 |
212 | ### Bug Fixes
213 |
214 | ##### TypeScript
215 |
216 | - Add num columns type [#5](https://github.com/marcocesarato/react-native-big-list/issues/5) ([54e8fa](https://github.com/marcocesarato/react-native-big-list/commit/54e8fa419f61945ee8b569450ace58954c3c62ee))
217 |
218 | ---
219 |
220 | ## [1.3.0](https://github.com/marcocesarato/react-native-big-list/compare/v1.2.5...v1.3.0) (2021-06-11)
221 |
222 | ### Features
223 |
224 | - Add batch size threshold ([988fa0](https://github.com/marcocesarato/react-native-big-list/commit/988fa0f79210579769ccf85a4196e2a0e09c6edc))
225 | - Number of columns [#5](https://github.com/marcocesarato/react-native-big-list/issues/5) ([e1a4ab](https://github.com/marcocesarato/react-native-big-list/commit/e1a4ab2a2316fd193626fb8b966814634643fd2e))
226 |
227 | ### Bug Fixes
228 |
229 | - Increase batch size ([e4c20c](https://github.com/marcocesarato/react-native-big-list/commit/e4c20c0704d0264426760f22579f9dc60f0f5d14))
230 |
231 | ---
232 |
233 | ## [1.2.5](https://github.com/marcocesarato/react-native-big-list/compare/v1.2.4...v1.2.5) (2021-06-10)
234 |
235 | ### Features
236 |
237 | - Add on refresh event ([1ec3a4](https://github.com/marcocesarato/react-native-big-list/commit/1ec3a4d7016649e47bd906b410e8f545483b7c47))
238 |
239 | ---
240 |
241 | ## [1.2.4](https://github.com/marcocesarato/react-native-big-list/compare/v1.2.3...v1.2.4) (2021-06-10)
242 |
243 | ### Features
244 |
245 | - Add on end reached event [#4](https://github.com/marcocesarato/react-native-big-list/issues/4) ([dc2ce4](https://github.com/marcocesarato/react-native-big-list/commit/dc2ce437bd73911c59a245dac5c50ae2e56f03ae))
246 |
247 | ---
248 |
249 | ## [1.2.3](https://github.com/marcocesarato/react-native-big-list/compare/v1.2.2...v1.2.3) (2021-06-10)
250 |
251 | ---
252 |
253 | ## [1.2.2](https://github.com/marcocesarato/react-native-big-list/compare/v1.2.1...v1.2.2) (2021-06-10)
254 |
255 | ---
256 |
257 | ## [1.2.1](https://github.com/marcocesarato/react-native-big-list/compare/v1.2.0...v1.2.1) (2021-06-10)
258 |
259 | ---
260 |
261 | ## [1.2.0](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.10...v1.2.0) (2021-06-09)
262 |
263 | ### Features
264 |
265 | - Add sticky section headers enabled prop ([f39231](https://github.com/marcocesarato/react-native-big-list/commit/f39231072e1b4c1e953973f049a10951227deb44))
266 |
267 | ### Bug Fixes
268 |
269 | - Sticky headers for web ([38198c](https://github.com/marcocesarato/react-native-big-list/commit/38198c9fd8a8276a3412aed36ba6fa5a5fe8662b))
270 |
271 | ---
272 |
273 | ## [1.1.10](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.9...v1.1.10) (2021-06-09)
274 |
275 | ### Bug Fixes
276 |
277 | ##### TypeScript
278 |
279 | - Better typing ([052899](https://github.com/marcocesarato/react-native-big-list/commit/0528993c75194786ffbf716e54b916ffa82183cb))
280 |
281 | ---
282 |
283 | ## [1.1.9](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.8...v1.1.9) (2021-06-08)
284 |
285 | ### Bug Fixes
286 |
287 | - Add scroll to location method ([d5e288](https://github.com/marcocesarato/react-native-big-list/commit/d5e28890af778c854138e0d3a8bd50d434cad6cf))
288 | - Is visible method ([56fbe9](https://github.com/marcocesarato/react-native-big-list/commit/56fbe92930181d45694e17932b6357abad11e8ab))
289 |
290 | ##### TypeScript
291 |
292 | - Render accessory declaration ([ace0aa](https://github.com/marcocesarato/react-native-big-list/commit/ace0aaea80a8c44163d67f2489d1ee00f74d357e))
293 |
294 | ---
295 |
296 | ## [1.1.8](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.7...v1.1.8) (2021-06-07)
297 |
298 | ### Bug Fixes
299 |
300 | ##### TypeScript
301 |
302 | - Item height declaration issues ([313895](https://github.com/marcocesarato/react-native-big-list/commit/313895abfd3bf2d30047f5676a377f7268258f3d))
303 |
304 | ---
305 |
306 | ## [1.1.7](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.6...v1.1.7) (2021-06-07)
307 |
308 | ### Bug Fixes
309 |
310 | ##### TypeScript
311 |
312 | - Some declaration issues ([02f50d](https://github.com/marcocesarato/react-native-big-list/commit/02f50d3a99005a5a9a5ac7757da543583333b54b))
313 |
314 | ---
315 |
316 | ## [1.1.6](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.5...v1.1.6) (2021-06-07)
317 |
318 | ### Features
319 |
320 | - Add some new methods from scroll view ([81abd5](https://github.com/marcocesarato/react-native-big-list/commit/81abd595d9ea66c668cf2be59a7e2a73219f751a))
321 |
322 | ### Bug Fixes
323 |
324 | - Get item call ([bf82d7](https://github.com/marcocesarato/react-native-big-list/commit/bf82d7383b2f3eea313eda18dfb2d573409f6f81))
325 |
326 | ---
327 |
328 | ## [1.1.5](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.4...v1.1.5) (2021-06-07)
329 |
330 | ### Features
331 |
332 | - Add get item layout comaptibility ([1d93b5](https://github.com/marcocesarato/react-native-big-list/commit/1d93b5f3cfd2581a20290af9a625a1fe16f69211))
333 | - Add scroll to item and scroll to offset ([182463](https://github.com/marcocesarato/react-native-big-list/commit/182463381213036406c7b922c8401910141824f4))
334 |
335 | ### Bug Fixes
336 |
337 | ##### TypeScript
338 |
339 | - Render declarations ([5b9513](https://github.com/marcocesarato/react-native-big-list/commit/5b951392c9db6f98dc57b389bfae719325d22df5))
340 |
341 | ---
342 |
343 | ## [1.1.4](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.3...v1.1.4) (2021-06-07)
344 |
345 | ### Bug Fixes
346 |
347 | - Check if empty on create element ([01885b](https://github.com/marcocesarato/react-native-big-list/commit/01885b95acd931ba59898a36839e9cbd520e6d21))
348 | - Replace reflect methods ([001dfa](https://github.com/marcocesarato/react-native-big-list/commit/001dfa2fc818c97cd0b8e73151a1d2c50f5e73c7))
349 |
350 | ---
351 |
352 | ## [1.1.3](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.2...v1.1.3) (2021-06-07)
353 |
354 | ### Bug Fixes
355 |
356 | - Get list processor class ([108664](https://github.com/marcocesarato/react-native-big-list/commit/10866498cebf5f41aa65a3d801bbece760afc00d))
357 |
358 | ---
359 |
360 | ## [1.1.2](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.1...v1.1.2) (2021-06-07)
361 |
362 | ### Features
363 |
364 | - Add scroll methods ([e28447](https://github.com/marcocesarato/react-native-big-list/commit/e284477d4e5b0c4a3ba5893f02908c6d9d478791))
365 |
366 | ---
367 |
368 | ## [1.1.1](https://github.com/marcocesarato/react-native-big-list/compare/v1.1.0...v1.1.1) (2021-06-06)
369 |
370 | ### Features
371 |
372 | ##### Props
373 |
374 | - Adjust component header, footer and empty types ([34d4c4](https://github.com/marcocesarato/react-native-big-list/commit/34d4c439d995d087b0e34c8ecf43e40c80da7990))
375 |
376 | ---
377 |
378 | ## [1.1.0](https://github.com/marcocesarato/react-native-big-list/compare/v1.0.0...v1.1.0) (2021-06-06)
379 |
380 | ### Features
381 |
382 | - Add list component like flatlist for header, footer and empty ([796c1f](https://github.com/marcocesarato/react-native-big-list/commit/796c1f78062ab47bb1c5d5ad3a395161a33168eb))
383 |
384 | ##### Prop Types
385 |
386 | - Add prop types ([2e852a](https://github.com/marcocesarato/react-native-big-list/commit/2e852ad17313915640ec00978d919f47b8191411))
387 |
388 | ##### TypeScript
389 |
390 | - Add list component header, footer and empty types ([0129b6](https://github.com/marcocesarato/react-native-big-list/commit/0129b6f3bbe19b00b2ff9347b707f4396b5b6d2e))
391 | - Add typescript types ([de7b52](https://github.com/marcocesarato/react-native-big-list/commit/de7b52eb8f88e9bc3dc6a39b93ca63e873733fa8))
392 | - Add types for subcomponents ([48cc67](https://github.com/marcocesarato/react-native-big-list/commit/48cc67517b94c97e78c2ba883dd4c7b3349a9d38))
393 |
394 | ### Bug Fixes
395 |
396 | - Component for header, footer and empty multi usage ([443ead](https://github.com/marcocesarato/react-native-big-list/commit/443ead6b5f5b6dfc8fd2fce8cea4031de3225fc5))
397 |
398 | ##### TypeScript
399 |
400 | - Children to null and optional on subcomponents ([56dc20](https://github.com/marcocesarato/react-native-big-list/commit/56dc2006cdef33213390fd6a7ae7d09a92cc5762))
401 | - Component header, footer and empty types ([af9066](https://github.com/marcocesarato/react-native-big-list/commit/af906653adee3a96835639cd16ddebe0e7dbdb73))
402 |
403 | ---
404 |
405 | ## [1.0.0](https://github.com/marcocesarato/react-native-big-list/compare/2f2db97741a9ff0e69f204965e040152883eafab...v1.0.0) (2021-06-05)
406 |
407 | ---
408 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ### If this project has helped you out, please support us with a star 🌟
6 |
7 |
8 |
9 | [](http://npmjs.org/package/react-native-big-list)
10 | [](https://prettier.io/)
11 | [](http://npmjs.org/package/react-native-big-list)
12 |
13 |
14 |
15 | [Documentation](https://marcocesarato.github.io/react-native-big-list-docs/)
16 |
17 |
18 |
19 | ## 📘 Description
20 |
21 | #### What is this?
22 |
23 | This is a high performance list view for React Native with support for complex layouts using a similar FlatList usage to make easy the replacement.
24 | This list implementation for big list rendering on React Native works with a recycler focused on performance and memory usage and so it permits processing thousands items on the list.
25 |
26 | You can also try it on the published web app: [Demo](https://marcocesarato.github.io/react-native-big-list/)
27 |
28 | #### Why another list library?
29 |
30 | React Native's FlatList is great but when it comes to big lists it has some flaws because of its item caching.
31 | Exists some alternatives like `react-native-largelist` and `recyclerlistview` but both have some issues.
32 |
33 | The `react-native-largelist` isn't compatible with web and Expo, has native code that sometimes need to be readjusted and maintained, have a weird list item recycles (because it never has blank items), need data restructure and have some issues when trying to process a lot of data (eg: 100,000 items) because it would freeze the CPU.
34 |
35 | The `recyclerlistview` is performant but suffers from an empty frame on mount, weird scroll positions when trying to scroll to an element on mount, and the implementation of sticky headers conflicts with `Animated`.
36 |
37 | #### How it works?
38 |
39 | Recycler makes it easy to efficiently display large sets of data. You supply the data and define how each item looks, and the recycler library dynamically creates the elements when they're needed.
40 | As the name implies, the recycler recycles those individual elements. When an item scrolls off the screen, the recycler doesn't destroy its view. Instead, the recycler reuses the view for new items that have scrolled onscreen. This reuse vastly improves performance, improving your app's responsiveness and reducing power consumption.
41 |
42 | When list can't render your items fast enough the non-rendered components will appear as blank space.
43 |
44 | This library is fully JS native, so it's compatible with all available platforms: _Android, iOS, Windows, MacOS, Web and Expo_.
45 |
46 | ## 📖 Install
47 |
48 | Install the library from npm or yarn just running one of the following command lines:
49 |
50 | | npm | yarn |
51 | | ------------------------------------------ | -------------------------------- |
52 | | `npm install react-native-big-list --save` | `yarn add react-native-big-list` |
53 |
54 | ## 💻 Usage
55 |
56 | > Read also [How to migrate from FlatList](https://marcocesarato.github.io/react-native-big-list-docs/extras/migrate-flatlist/)
57 |
58 | Basic example:
59 |
60 | ```javascript
61 | import BigList from "react-native-big-list";
62 | // ...
63 | const MyExample = ({ data }) => {
64 | const renderItem = ({ item, index }) => ;
65 | return ;
66 | };
67 | ```
68 |
69 | For more examples check the `example` directory the `list` directory or check the [Documentation](https://marcocesarato.github.io/react-native-big-list-docs/basics/standard-list)
70 |
71 | ## 🎨 Screenshots
72 |
73 | | BigList vs FlatList | Section List |
74 | | ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
75 | | | |
76 |
77 | ## ⚡️ Example
78 |
79 | ### Snippets
80 |
81 | - [Standard List](https://marcocesarato.github.io/react-native-big-list-docs/basics/standard-list)
82 | - [Columns List](https://marcocesarato.github.io/react-native-big-list-docs/basics/columns-list)
83 | - [Sections List](https://marcocesarato.github.io/react-native-big-list-docs/basics/sections-list)
84 |
85 | ### Expo
86 |
87 | Clone or download repo and after:
88 |
89 | ```shell
90 | cd Example
91 | yarn install # or npm install
92 | expo start
93 | ```
94 |
95 | Open Expo Client on your device. Use it to scan the QR code printed by `expo start`. You may have to wait a minute while your project bundles and loads for the first time.
96 |
97 | You can also try it on the published web app: [Demo](https://marcocesarato.github.io/react-native-big-list/)
98 |
99 | ## 💡 Props and Methods
100 |
101 | The list has the same props of the [ScrollView](https://reactnative.dev/docs/scrollview#props) in addition to its specific [Props](https://marcocesarato.github.io/react-native-big-list-docs/props) and [Methods](https://marcocesarato.github.io/react-native-big-list-docs/methods).
102 |
103 | ## 🤔 How to contribute
104 |
105 | Have an idea? Found a bug? Please raise to [ISSUES](https://github.com/marcocesarato/react-native-big-list/issues) or [PULL REQUEST](https://github.com/marcocesarato/react-native-big-list/pulls).
106 | Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.
107 |
108 |