How to use the @react-spring/shared.is.num function in @react-spring/shared

To help you get started, we’ve selected a few @react-spring/shared examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-spring / react-spring / packages / animated / src / AnimatedString.ts View on Github external
setValue(value: Value) {
    if (!is.num(value)) {
      this._string = value
      this._value = 1
    } else if (super.setValue(value)) {
      this._string = null
    } else {
      return false
    }
    return true
  }

@react-spring/shared

Globals and shared modules

MIT
Latest version published 10 months ago

Package Health Score

85 / 100
Full package analysis