Skip to content

Commit bfd6d79

Browse files
M-i-k-e-lethanshar
authored andcommitted
Feat/new dialog (#505)
* New Dialog - it's a start * Remove useSafeArea usage * Rename private methods + expose public static methods + change dialogKey in non template dialogs * Remove redundant example * Send props to Dialog's onDismiss + remove arrow functions * Mostly prettify * Rename * supportedOrientations * Remove old deprecation warnings * Change SafeAreaView to useSafeArea * renderHeader --> renderPannableHeader * renderHeader --> renderPannableHeader (2) * Copy props instead of spreading them * Rename style * Create PanResponderView and PanAnimatableView * Remove unused prop * Fix PanResponderView and PanAnimatableView * Dialog - continued * Working (mostly) * Remove PanDismissibleView * Prettify * Refactor * Small refactor * Add TODOs * Rename example ID to reactNativeOverlay * Fix header examples * Reduce complexity of initial location * dialogKey --> orientationKey + renderVisibleContainer --> renderDialogContainer + add renderDialogView * Add visible props to DialogDismissibleView (remove the need to reference it) * dynamicStyles --> styles + default height from 70% to undefined * Add default left\top so there's less code * Move style creation to getter (getAnimationStyle) * Move to styles + rename some methods * Remove TODOs * Change animation value 0 <--> 1 * Prettify * hideDialog --> hideDialogView * Send props in the deprecated dialog's onDismiss * Remove unused import * Refactor * Fix counter not initialized. * Remove unused code * Remove unnecessary code * Remove unused prop * Make dialog centered horizontally no matter what the alignment is * Fix alignment & height not changing after constructor has been called * Remove disablePan (if panDirection is undefined there will be no pan) * Add warnings for unrecommended usage * Refactor - add isSwiping * Rename size --> dialogViewSize * Revert style location change + change key in dialog screen instead of checking for props change * Change default configuration of the dialog screen * Add TODO * Remove unused code * Remove isUndefined
1 parent 57f8b2b commit bfd6d79

15 files changed

+1156
-680
lines changed

demo/src/screens/MenuStructure.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const navigationData = {
3434
{title: 'Overlays', tags: 'overlay image', screen: 'unicorn.components.OverlaysScreen'},
3535
{title: 'Page Control', tags: 'page', screen: 'unicorn.components.PageControlScreen'},
3636
{title: 'Pan Listener', tags: 'pan swipe drag listener', screen: 'unicorn.components.PanListenerScreen'},
37+
{title: 'Pan Responder', tags: 'pan swipe drag responder', screen: 'unicorn.components.PanResponderScreen'},
3738
{title: 'Shared Transition', tags: 'shared transition element', screen: 'unicorn.components.SharedTransitionScreen'},
3839
{title: 'TabBar', tags: 'tab bar', screen: 'unicorn.components.TabBarScreen'},
3940
{title: 'Toast', tags: 'toast top bottom snackbar', screen: 'unicorn.components.ToastsScreen'},

0 commit comments

Comments
 (0)