Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransitioningComponent<S, SS, S>

Type parameters

  • S

  • SS

  • S

Hierarchy

Index

Constructors

constructor

Properties

context

context: any

props

props: Readonly<object> & Readonly<ITransitioningComponentProps>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

state

state: Readonly<S>

Accessors

Private cssWrapperStyle

  • get cssWrapperStyle(): CSSProperties

Private enteringTransform

  • get enteringTransform(): string

Private exitingTransform

  • get exitingTransform(): string

Private horizontalFarDistance

  • get horizontalFarDistance(): number

Private sliderEnterTimingFunction

  • get sliderEnterTimingFunction(): string

Private sliderExitTimingFunction

  • get sliderExitTimingFunction(): string

Private sliderHorizontalMargin

  • get sliderHorizontalMargin(): number

Private sliderTransitionEnterTime

  • get sliderTransitionEnterTime(): string

Private sliderTransitionExitTime

  • get sliderTransitionExitTime(): string

Private sliderVerticalMargin

  • get sliderVerticalMargin(): number

Private verticalFarDistance

  • get verticalFarDistance(): number

Private wrapperStyleFarDown

  • get wrapperStyleFarDown(): string

Private wrapperStyleFarLeft

  • get wrapperStyleFarLeft(): string

Private wrapperStyleFarRight

  • get wrapperStyleFarRight(): string

Private wrapperStyleFarUp

  • get wrapperStyleFarUp(): string

Private wrapperTransformCenter

  • get wrapperTransformCenter(): string

Methods

Private addEndListener

  • addEndListener(node: HTMLElement, done: function): void

forceUpdate

  • forceUpdate(callBack?: undefined | function): void
  • Parameters

    • Optional callBack: undefined | function

    Returns void

render

  • render(): Element

Private renderTransitioningChild

setState

  • setState<K>(state: function | null | S | object, callback?: undefined | function): void
  • Type parameters

    • K: keyof S

    Parameters

    • state: function | null | S | object
    • Optional callback: undefined | function

    Returns void

Static Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Static Optional UNSAFE_componentWillReceiveProps

Static Optional UNSAFE_componentWillUpdate

Static Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Static Optional componentDidMount

  • componentDidMount(): void
  • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

    Returns void

Static Optional componentDidUpdate

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    Returns void

Static Optional componentWillMount

  • componentWillMount(): void

Static Optional componentWillReceiveProps

Static Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Static Optional componentWillUpdate

Static Optional getSnapshotBeforeUpdate

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns SS | null

Static Optional shouldComponentUpdate

  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    Returns boolean

Generated using TypeDoc