react-native-modalize
Advanced tools
Changelog
[2.0.5] - 2020-07-25
Changelog
[2.0.13] - 2021-12-24
Changelog
[2.0.0] - 2020-05-05
I have been working on it for the last couple of weeks. Many thanks for the people who contributed, opened PR and found issues. High five to @xxsnakerxx for having contributing many times in the last few weeks!
react-native-portalize
to be able to solve this issue. It works with Modalize but can also be useful in other context.ref
to open or close Modalize is still the same ref={modalizeRef}
, modalizeRef.current.open()
. However, you won't be able to access scrollTo
, scrollToIndex
on the content renderer using this ref anymore. You will need to use the new ref contentRef
that will give you access to the content methods. contentRef={contentRef}
, contentRef.current.getScrollResponder().scrollTo(...)
. "content" stands for ScrollView, FlatList or SectionList depending the content renderer you are using.panGestureComponentEnabled
and closeSnapPointStraightEnabled
props (b831d3)rootStyle
props by @enniel (149af4)contentRef
props to access ScrollView/FlatList/SectionList methods by @xxsnakerxx (868870)childrenStyle
props (1519e9c)customRendered
props (0f4e24f)velocity
props to improve dismiss behavior (9c6b85a)scrollToIndex
props for flatListProps #125 (19a3b41)threshold
props by @adrianso (cf0be59)withOverlay
props by @marcinolek (5aa30f3)FloatingComponent
props by @vforvasile (#162) (269934e)modalElevation
props for Android #161 (0ad5923)onLayout
props #49 (598d548)onOverlayPress
#142 (748c3e7)onPositionChange
props (#122) (302a347)panGestureAnimatedValue
props from PanGestureHandler (#113, #105, #69) (#160) (4780d5e)dragToss
props by @bcpugh (eb1b448)keyboardAvoidingOffset
, panGestureEnabled
, closeOnOverlayTap
and improvements by @xxsnakerxx (#115) (7563c82)snapPoint
#150 (#153) (dfd56fb)alwaysOpen
and ajustToContentHeight
props to work at the same time #172 (c37ecd5)adjustToContentHeight
props by @xxsnakerxx (#166) (0c5d908)alwaysOpen
to open to default position (bed354e)scrollTo
methods updated for flatList and sectionList by @xxsnakerxx (#126) (038a5ab)ajustToContentHeight
(#149) (7e219c)adjustToContentHeight
(5550f3f)alwaysOpen
props on init (990cba7)