(measure) method cannot be used on RN side!
See original GitHub issueDescription
When I use the measure function like that :
const style = useAnimatedStyle(() => {
const measured = measure(aref);
return {
width: measured.width,
height: measured.height,
};
});
I get the error message :
(measure) method cannot be used on RN side!
Screenshots
Steps To Reproduce
Expected behavior
Actual behavior
I’d like for this measure
to work
Snack or minimal code example
Package versions
- React:
- React Native:
- React Native Reanimated: alpha 5
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:11 (6 by maintainers)
Top Results From Across the Web
measure | React Native Reanimated - Software Mansion
Determines the location on screen, width, and height in the viewport of the given view synchronously and returns an object with measured dimensions...
Read more >React Native: Getting the position of an element - Stack Overflow
React Native provides a .measure(...) method which takes a callback and calls it with the offsets and width/height of a component: myComponent.measure( (fx ......
Read more >Measures with Reanimated 2 : r/reactnative - Reddit
I.e., if the list items themselves did not have a defined height in advance. Is this use case doable using measure?
Read more >Use of Restraints and Safety Devices: NCLEX-RN
Commonly Used Terms Associated With Restraints and Restraint Use ... however, it is not often possible to prevent the use of restraints and...
Read more >NG Tube Placement | How to Check Nasogastric Tube ...
Methods Used to Check Correct Placement of Nasogastric (NG) Tube ... side under the diaphragm. Syringe test – This method is not uses...
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 FreeTop 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
Top GitHub Comments
having the same issue.
@terrysahaidak this doc example doesn’t work and raises the above error.