Guest User

Untitled

a guest
Jan 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import {
  2. findNodeHandle
  3. } from 'react-native'
  4.  
  5.  
  6. this.childItem.measureLayout(findNodeHandle(this.containerWrapper), (x, y, width, height) => {
  7. console.log('got measurement', x, y, width, height)
  8. })
  9.  
  10. // example render
  11.  
  12. <container-wrapper ref={ref => this.containerWrapper = ref}>
  13. <item ref={ref => this.childItem = ref } />
  14. </container-wrapper>
Add Comment
Please, Sign In to add comment