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

Version 4.0 with api refactoring and dynamic tabs #93

Merged
merged 86 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
11aa73c
refactor: polish the api a bit
andreialecu Feb 3, 2021
99189dc
refactor: remove containerRef and refMap
andreialecu Feb 3, 2021
c01df8f
fixup! refactor: remove containerRef and refMap
andreialecu Feb 3, 2021
9d288b0
fixup! refactor: remove containerRef and refMap
andreialecu Feb 3, 2021
aee6f2e
refactor: use add <Tab> component
andreialecu Feb 3, 2021
3ec551d
fixup! refactor: use add <Tab> component
andreialecu Feb 3, 2021
6bbecf0
fixup! refactor: use add <Tab> component
PedroBern Feb 3, 2021
4caa10b
fixup! refactor: use add <Tab> component
PedroBern Feb 3, 2021
364494b
refactor: misc refactoring and fixes
andreialecu Feb 4, 2021
2884bba
feat: dynamic tabs
andreialecu Feb 4, 2021
208b42f
Merge branch 'main' of github.com:PedroBern/react-native-collapsible-…
andreialecu Feb 4, 2021
233d598
refactor: work around some typing issues
andreialecu Feb 4, 2021
264cf00
fix: attempt at fixing lazy sometimes opening with 0 opacity
andreialecu Feb 4, 2021
b0cdcff
fix: minor tabbar tweaks
andreialecu Feb 4, 2021
f6a2f69
fix: infinite loop
andreialecu Feb 4, 2021
29568ef
refactor: handle window resize separately
PedroBern Feb 4, 2021
b383af9
fix: lazy
andreialecu Feb 4, 2021
c42f0db
Merge branch 'refactor-apicleanup3' of github.com:andreialecu/react-n…
andreialecu Feb 4, 2021
7379635
refactor: simplify dynamic refs
andreialecu Feb 4, 2021
b92a772
Merge branch 'main' into refactor-apicleanup3
PedroBern Feb 4, 2021
622bc40
Merge branch 'main' into refactor-apicleanup3
PedroBern Feb 4, 2021
5fc5cb8
refactor: fix TabBar and TabItem types
PedroBern Feb 5, 2021
d9c27a5
fix: bug when removing dynamic tab
andreialecu Feb 5, 2021
6cfdaf4
refactor: better handling of null context
andreialecu Feb 5, 2021
eeb94cc
fix: memoize tabbar in example so it doesn't flicker
andreialecu Feb 5, 2021
f4ebdfe
feat: dynamic tabbar
andreialecu Feb 5, 2021
00977b3
fixup! feat: dynamic tabbar
andreialecu Feb 5, 2021
8cfc596
fix: opacity stuck as 0 on lazy tab (sometimes)
andreialecu Feb 5, 2021
1bea47b
docs: add shuffle tabs button
andreialecu Feb 5, 2021
fb3b1b2
fix: add null check
andreialecu Feb 5, 2021
b0fbcb7
docs: more complex dynamic tabs example
andreialecu Feb 5, 2021
ec513cd
fix: rework refs to fix scroll sync
andreialecu Feb 5, 2021
4c9cfce
fix: sync scroll position on dynamic tabs
andreialecu Feb 5, 2021
72b4e54
fix: handle ios overscroll
PedroBern Feb 5, 2021
63fa2dc
fix: cancel snapping animations on drag
andreialecu Feb 5, 2021
fc97773
fixup! docs: more complex dynamic tabs example
PedroBern Feb 5, 2021
9fa6958
fix: navigation bar zindex on ios
andreialecu Feb 5, 2021
5f7826d
refactor: clamp scroll on ios to scrollview bounds
andreialecu Feb 5, 2021
0e4c8c7
chore: fix docs script
PedroBern Feb 5, 2021
2fdd9fa
docs: update readme
PedroBern Feb 5, 2021
6284a69
refactor: remove unused code
PedroBern Feb 5, 2021
49e972a
docs: update documentation
PedroBern Feb 5, 2021
bf79c36
chore: allow to override props in the docs
PedroBern Feb 6, 2021
2b9c462
refactor: add undescore to internal context variables and improve docs
PedroBern Feb 6, 2021
2f88ef5
refactor: remove createCollapsibleTabs
andreialecu Feb 6, 2021
393f746
docs: inline quickstart example (makes it clearer nesting is supported)
andreialecu Feb 6, 2021
84afde8
fixup! docs: inline quickstart example (makes it clearer nesting is s…
andreialecu Feb 6, 2021
4852a87
docs: remove unnecessary useMemo from onIndexChange example
andreialecu Feb 6, 2021
dc09c5d
fixup! docs: remove unnecessary useMemo from onIndexChange example
andreialecu Feb 6, 2021
356cdbf
fix: diffclamp snap threshold
andreialecu Feb 6, 2021
321fa34
fix: contentHeight should've been a map
andreialecu Feb 6, 2021
25c3a76
fixup! docs: add shuffle tabs button
andreialecu Feb 6, 2021
8421c65
fix: ensure callers can't override onScroll
andreialecu Feb 6, 2021
6f32f1c
feat: allow callers to still hook into certain events we're also hand…
andreialecu Feb 6, 2021
749cfbe
feat: forward flatlist and scrollview refs
andreialecu Feb 7, 2021
dd85ed4
docs: clarify scroll on header example
andreialecu Feb 7, 2021
92f22de
fix: usederivedvalue for tabnames value
andreialecu Feb 7, 2021
c02c88a
feat: rename onIndexChange to onTabChange and add onIndexChange(number)
andreialecu Feb 7, 2021
00d1f42
refactor: change diffClampEnabled to headerStickyness
andreialecu Feb 7, 2021
7038f63
refactor: remove snapEnabled and make snapThreshold nullable instead
andreialecu Feb 7, 2021
5e18678
feat: add sanity check (duplicate tabs not allowed)
andreialecu Feb 7, 2021
1db8e4e
fix: prevent scrolling to top
PedroBern Feb 8, 2021
a2ba569
refactor: clean code
PedroBern Feb 8, 2021
787a5e9
refactor: improve typing
PedroBern Feb 8, 2021
943db19
fixup! refactor: improve typing
PedroBern Feb 8, 2021
423af59
refactor: update docs
PedroBern Feb 8, 2021
fa2f2d9
chore: update docs script
PedroBern Feb 8, 2021
7569a52
fix: sticky header edge case on android
andreialecu Feb 8, 2021
fa4fbdb
fixup! fix: sticky header edge case on android
andreialecu Feb 8, 2021
ca5d167
refactor: move endDrag outside of context
andreialecu Feb 8, 2021
72e87ac
fix: stop animated scroll on snap
andreialecu Feb 8, 2021
70810cd
fixup! fix: stop animated scroll on snap
andreialecu Feb 8, 2021
53d0789
docs: add refreshing to examples
PedroBern Feb 8, 2021
fb49a97
fix: don't bounce pager on ios
andreialecu Feb 8, 2021
10bf618
refactor: change headerStickyness to revealHeaderOnScroll
PedroBern Feb 8, 2021
92a704b
docs: remove centered empty list example
PedroBern Feb 8, 2021
e6ce9eb
docs: update docs to use named export
PedroBern Feb 8, 2021
f488e79
refactor: remove unnecessary init function
PedroBern Feb 8, 2021
30f79a8
docs: update hooks documentation
PedroBern Feb 8, 2021
c09a3e8
fix: ios refresh control
andreialecu Feb 8, 2021
1367c66
Merge branch 'refactor-apicleanup3' of github.com:andreialecu/react-n…
andreialecu Feb 8, 2021
56789c1
fix: initial lazy position on ios
andreialecu Feb 8, 2021
80a5690
fix: add isGliding back + interpolate scrollYCurrent only in iOS
PedroBern Feb 9, 2021
c9c25a0
docs: remove pull to refresh in android flatlist
PedroBern Feb 9, 2021
46cacd7
Merge branch 'main' into refactor-apicleanup3
PedroBern Feb 9, 2021
54de75a
docs: add @next message to the readme
PedroBern Feb 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ module.exports = {
// 'react-native/no-color-literals': 'warn',
// 'react-native/no-raw-text': 'warn',
// 'react-native/no-single-element-style-arrays': 'warn',
'import/no-default-export': 'error',
},
plugins: ['react-native-globals', 'react-native'],
extends: 'universe/native',
extends: ['universe/native'],
env: {
'react-native-globals/all': true,
},
Expand Down