question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Ripple] this refs.node.measure is not a function

See original GitHub issue

I’m currently implementing some inputs like Radio or Checkbox and I’m trying to use your Ripple component but I got an error…

capture d ecran 2015-10-01 a 12 03 53

Here is my render function :

return  (
      <View style={style.input}>
        <Ripple ref="container"
          >
            <View style={style.rounded}></View>
          </Ripple>
        <Text style={style.label}>FOO</Text>
      </View>
    )

And here is the result of a console.log(this.refs.node) in MKTouchable file.

capture d ecran 2015-10-01 a 12 07 32

I missed something ?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xinthinkcommented, Oct 10, 2015

should be fixed in v0.2.0 just released, changed to onLayout callbacks

0reactions
xinthinkcommented, Oct 2, 2015

I’m thinking about replacing measure with onLayout, not just because this issue, but also the strange behavior of RN Android processing borderRadius

Read more comments on GitHub >

github_iconTop Results From Across the Web

measure is not a function - react native - Stack Overflow
When using a ref, you need to access the referenced object using parentViewRef.current . In your case parentViewRef.current.measure .
Read more >
Refs and the DOM - React
Refs provide a way to access DOM nodes or React elements created in the render method. In the typical React dataflow, props are...
Read more >
Simplifying Current Sensing (Rev. A) - Texas Instruments
This e-book's collection of application notes is not an exhaustive list of all current-sensing challenges and TI application notes, but it does address...
Read more >
10 Year VRLA Battery Periodic Maintenance Instructions
Measure and record the battery system. DC float charging voltage at the battery. Optionally measure and record the AC ripple voltage at this...
Read more >
How Correlated Are Network Centrality Measures? - NCBI - NIH
In other network configurations, however, nodes with high degree centrality are not necessarily the most strategically located. One way to characterize such ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found