-
Notifications
You must be signed in to change notification settings - Fork 734
Feat/new dialog #505
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
Feat/new dialog #505
Conversation
…Key in non template dialogs
this.animatedValue = new Animated.Value(0); | ||
this.state = { | ||
visible: props.visible, | ||
isAnimating: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's the isAnimating
that make things work, but the fact you run a setState
(line 134) before you start the animation, not sure what's causing it to work properly.
even if you'll do
this.setState({bla: true}, () => animation.start(animationEndCallback));
it will work fine.
check why the setState is matter here.
src/components/dialog/index.js
Outdated
initPositions() { | ||
this.setState({ | ||
deltaY: new Animated.Value(this.initialPosition) | ||
createStyles(props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did u move this function into the class, not sure I follow what's going on here with all the styles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it's more organized this way. Is there a drawback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted (added a key in the screen as discussed)
src/components/dialog/index.js
Outdated
renderDialogView = () => { | ||
const {children, renderPannableHeader, style, bottom, top} = this.props; | ||
const {dialogVisibility} = this.state; | ||
const Container = !_.isUndefined(renderPannableHeader) ? View : PanListenerView; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you've missed this one
# Conflicts: # src/components/panningViews/panDismissibleView.js
No description provided.