Skip to content

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

Merged
merged 60 commits into from
Sep 2, 2019
Merged

Feat/new dialog #505

merged 60 commits into from
Sep 2, 2019

Conversation

M-i-k-e-l
Copy link
Collaborator

No description provided.

this.animatedValue = new Animated.Value(0);
this.state = {
visible: props.visible,
isAnimating: false,
Copy link
Collaborator

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.

@M-i-k-e-l M-i-k-e-l requested a review from ethanshar August 28, 2019 09:05
initPositions() {
this.setState({
deltaY: new Animated.Value(this.initialPosition)
createStyles(props) {
Copy link
Collaborator

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.

Copy link
Collaborator Author

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?

Copy link
Collaborator Author

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)

@M-i-k-e-l M-i-k-e-l requested a review from ethanshar August 29, 2019 12:17
renderDialogView = () => {
const {children, renderPannableHeader, style, bottom, top} = this.props;
const {dialogVisibility} = this.state;
const Container = !_.isUndefined(renderPannableHeader) ? View : PanListenerView;
Copy link
Collaborator

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
@M-i-k-e-l M-i-k-e-l requested a review from ethanshar September 2, 2019 07:02
@ethanshar ethanshar merged commit bfd6d79 into master Sep 2, 2019
ethanshar added a commit that referenced this pull request Sep 2, 2019
ethanshar added a commit that referenced this pull request Sep 2, 2019
@M-i-k-e-l M-i-k-e-l deleted the feat/new-dialog branch September 15, 2019 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants