Commit Graph

36 Commits

Author SHA1 Message Date
Mo Gorhom
9ffd4e8b18 feat: added style prop (#189)
* chore: added style prop to be applied to sheet container

* chore: updated examples
2021-01-12 21:42:08 +01:00
Mo Gorhom
5f22662f86 refactor: handle & background layers (#165)
* chore: added content mask container

* chore: remove default handle background color

* chore: updated examples
2021-01-07 22:13:14 +01:00
Mo Gorhom
84b0349b25 refactor: removed ContentWrapper from BottomSheet (#156)
* chore: remove contentwrapper!

* chore: rename basic example to Dev
2021-01-07 20:44:44 +01:00
Mo Gorhom
83b059924d chore: changed the default easing function to cubic (#151) 2021-01-06 12:48:18 +01:00
Mo Gorhom
aa329d7216 feat: add third party gestures integration (#143)
* chore: added simultaneousHandlers and waitFor props

* chore: added view pager example
2021-01-03 20:08:07 +01:00
Mo Gorhom
36c29935ba feat: added over drag support (#139)
* chore: updated scrollEventThrottle on scrollables

* chore: updated internal scrollable event

* chore: added animation config creator hooks

* chore: updated bottom sheet props and animation configs

* chore: updated interactive pan gesture hook

* chore: updated handle styling

* chore: updated ReText component

* chore: updated examples

* fix: fixed stuck sheet when interacting fast

* chore: updated navigator example

* fix: animationConfigs prop type
2021-01-02 17:15:17 +01:00
Mo Gorhom
d689731a4f feat: added over scroll and bouncing support (#137)
* chore: updated scrollables types and props

* chore: updated contactlist to add bouncing

* chore: remove debugging console logs
2021-01-01 21:04:43 +01:00
Mo Gorhom
4bbfff7f42 chore: fixed map example on android 2020-12-23 00:01:11 +01:00
Mo Gorhom
d26ab34235 chore: updated map exmaple 2020-12-22 23:48:23 +01:00
Mo Gorhom
aeeb9a2d46 feat: added onAnimate callback (#127)
* chore: added onAnimate callback implementation

* chore: updated examples
2020-12-20 23:05:20 +01:00
Mo Gorhom
23c1b99b04 fix: updated default backdrop handling (#126)
* chore: updated default backdrop component

* chore: updated examples
2020-12-20 22:55:10 +01:00
Mo Gorhom
4fe2f39a8d feat: added bottom sheet modal (#125)
* chore: added BottomSheetModal component

* chore: updated BottomSheet to handle modal usage

* chore: added @gorhom/portal

* chore: updated examples

* chore: updated exmples screens

* fix: updated useLayoutEffect in BottomSheet for Android
2020-12-20 22:49:32 +01:00
Mo Gorhom
9650a487b1 feat: add backdrop handling (#124)
* chore: added BottomSheetBackdrop

* chore: updated BottomSheet implementation to handle backdrops

* chore: updated examples
2020-12-20 15:43:15 +01:00
Mo Gorhom
3454fddddb feat: allow control panning gestures (#123)
* chore: added gesture control props

* chore: updated examples
2020-12-20 15:09:54 +01:00
Mo Gorhom
d88f545cf0 feat: support dynamic snap points (#122)
* chore: added background container

* chore: added root container

* chore: added handle container

* chore: added usePropsValidator hook

* chore: updated layout handling wip

* chore: updared handle example

* chore: added useNormalizedSnapPoints hook

* chore: updated debug view

* chore: updated content wrapper

* chore: updated pre-integrated view

* chore: updated bottomsheet implementation to handle dynamic snap points

* chore: rename BottomSheetDraggableView

* chore: updated useScrollableAnimatedProps

* chore: updated deceleration rate handling

* chore: updated examples
2020-12-20 14:46:20 +01:00
Mo Gorhom
e14374b7c2 feat: added animateOnMount prop (#121)
* chore: added animateOnMount prop

* chore: updated examples
2020-12-19 19:19:52 +01:00
Mo Gorhom
4de6c8d892 chore: remove unused debugs logs on example 2020-10-01 21:58:20 +02:00
Mo Gorhom
4af6851c3d chore: updated dependencies 2020-10-01 21:56:02 +02:00
Mo Gorhom
9b1e927bc3 docs: updated documents 2020-09-20 13:29:02 +02:00
Mo Gorhom
300a8b0c33 chore: updated pref component 2020-09-20 01:06:51 +02:00
Mo Gorhom
fa6fbda374 chore: updated examples 2020-09-19 23:44:24 +02:00
Mo Gorhom
6f36e9ceb1 refactor: rewrite code base to use reanimated v2 2020-09-19 23:43:28 +02:00
Mo Gorhom
a4b385c382 chore: updated reanimated to 2 alpha 6 2020-09-14 20:32:42 +02:00
Mo Gorhom
789800ad89 Merge branch 'master' into feature/rewrite-in-reanimated-v2
# Conflicts:
#	example/ios/Podfile.lock
#	example/src/screens/BasicExample.tsx
#	src/components/bottomSheet/BottomSheet.tsx
#	src/components/bottomSheet/useTransition.ts
#	src/components/draggableView/DraggableView.tsx
#	src/constants.ts
#	src/contexts/internal.ts
#	src/hooks/useScrollable.ts
#	src/hooks/useScrollableInternal.ts
2020-09-05 22:51:59 +02:00
Mo Gorhom
e998ca352a WIP 2020-09-05 22:37:16 +02:00
Mo Gorhom
9185a5fd1f chore: improve content/scrollable panning handling (#23) 2020-08-23 20:13:57 +02:00
Mo Gorhom
2c3d545a10 feat: added expo compatibility support 2020-08-22 08:12:38 +02:00
Mo Gorhom
65af6f1e8a feat: added expand & collapse methods (#8)
* chore: added expand & collapse methods

* chore: updated examples

* docs: updated readme file to include new methods
2020-08-12 11:51:31 +02:00
Mo Gorhom
c372e25c02 docs: update branding (#4)
* fix: initial closed sheet

* chore: updated preview gif

* chore: updated ios icon app

* chore: updated android icon app

* chore: updated ios icon app
2020-08-11 20:41:44 +02:00
Mo Gorhom
9a65a7435b chore: updated map example 2020-08-11 16:46:35 +02:00
Mo Gorhom
312bcd10ef chore: added map example 2020-08-11 16:10:12 +02:00
Mo Gorhom
fdef2a92f0 docs: update docs (#3)
* docs: updated readme file

* docs: updated scrollables docs

* docs: added custom-handle, react-navigation & touchables docs

* chore: remove unused dependencies
2020-08-11 16:05:16 +02:00
Mo Gorhom
a58a29fc0f feat: rewrite bottom sheet from scratch 🎉 (#2)
* chore: added utilities functionalities

* chore: added default handle

* chore: rewrite the whole bottom sheet into a functional component

* chore: added basic example WIP

* chore: extract content pan gesture

* chore: updated flatlist implementation

* chore: updated scrollview implementation

* chore: updated sectionview implementation

* chore: improve snapping by clamping velocity

* chore: extract scrollable functioanlites and introduce removeScrollableRef

* chore: added snapTo and close public methods

* chore: updated basic examples

* chore: added draggable view

* chore: revert clampedVelocity

* chore: fixed issue with manual animation

* fix: fixed android issue with scrollables

* chore: updated dependencies

* chore: extract handle pan gesture from content

* chore: updated examples

* chore: persist scrollable content offset per view

* chore: rename scrollable components

* chore: revert initial screen

* chore: added touchables

* chore: updated examples

* chore: added animatedPosition & animatedPositionIndex callback nodes

* chore: added custom handle & shadow overlay examples

* chore: support initial closed state

* chore: allow user to modify animation configs

* chore: updated navigator example

* chore: added loadash.isequal
2020-08-11 11:00:09 +02:00
Mo Gorhom
fe3c56bbce fix: fixed reattach events onfocus (#1)
* chore: added basic and navigator example

* chore: added basic and navigator example

* chore: moved pan gesture handler into scrollable components

* chore: updated examples
2020-08-03 13:01:12 +02:00
Mo Gorhom
70061ec8fb chore: introduce focus hook to reset scrollable ref 2020-07-31 16:49:29 +02:00
Mo Gorhom
105cb0334e chore: clone react-native-scroll-bottom-sheet 2020-07-31 15:13:00 +02:00