browniefed / react-native-ticker

React Native Number Ticker
https://www.npmjs.com/package/react-native-ticker
460 stars 46 forks source link

'measure.height' is undefined #27

Open calebdre opened 4 years ago

calebdre commented 4 years ago

I'm running into this production bug:

TypeError: undefined is not an object (evaluating 'V.height')
  File "project/node_modules/react-native-ticker/index.js", line 46, col 17, in Component
    height: measurement.height,

I haven't been able to reproduce this, but it seems to happen when new text is passed to Ticker.

JDMathew commented 2 years ago

I came across this same issue. I believe it is due to passing something other than a number into the Ticker component. To rotate things other than numbers you need to use the Tick component.

Deepak-dex commented 1 year ago

In my case Math.abs() did the trick