Remove sheet animation delay

Summary: I noticed every time you open a sheet it feels laggy and unresponsive. This removes the wait time to make it immediate.

Reviewed By: passy

Differential Revision: D17684407

fbshipit-source-id: f918bf8ca3bb0ef68c3fe01991c67d50f3967d68
This commit is contained in:
John Knox
2019-10-01 03:26:14 -07:00
committed by Facebook Github Bot
parent c4c5d453c2
commit d6f7d75e83

View File

@@ -91,7 +91,7 @@ class Sheet extends Component<Props, State> {
return ( return (
<Transition <Transition
in={Boolean(this.props.activeSheet) && this.state.isVisible} in={Boolean(this.props.activeSheet) && this.state.isVisible}
timeout={300} timeout={0}
onExited={() => this.props.onHideSheet()}> onExited={() => this.props.onHideSheet()}>
{state => ( {state => (
<DialogContainer state={state}> <DialogContainer state={state}>