[Ripple] this refs.node.measure is not a function
See original GitHub issueI’m currently implementing some inputs like Radio or Checkbox and I’m trying to use your Ripple component but I got an error…
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.
I missed something ?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
should be fixed in v0.2.0 just released, changed to
onLayout
callbacksI’m thinking about replacing
measure
withonLayout
, not just because this issue, but also the strange behavior of RN Android processingborderRadius