Would a measure(ref) function make sense?
See original GitHub issueI’ve implemented a ScrollView with reanimated (and gesture handler) since I wanted bidirectional scrolling. Anyways, I’m super happy with the end result. It shows that people who are looking to build consistent experiences across iOS and Android can use gesture handler and reanimated to declare complex high-level components.
However, in my case, I’m lucky because I know statically the upper bound of my x and y scrolling. If the content size would change dynamically, would it make sense to have a measure(ref)
function so we can set the scroll upper bound? What are your thoughts on this?
It’s not something that I need but I was just wondering how I would deal with it if this came up.
Thanks for the great work ❤
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Random variables and reference probability measure
There does exist an expression for E(X) using the measure P defined on the induced probability space (R,BR,P), known as change of variable ......
Read more >Assign variable in ref.current.measure callback - Stack Overflow
in this function I would like to assign pageY and pageX value to variable. The problem is that I have a lot of...
Read more >Everything You Need to Know About Refs in React
Short for “reference”, refs are a way to access underlying DOM elements in a React component. There are many reasons why you would...
Read more >ref - dbt Developer Hub
The most important function in dbt is ref() ; it's impossible to ... the model can run first because no explicit references are...
Read more >Explaining Odds Ratios - PMC - NCBI - NIH
An odds ratio (OR) is a measure of association between an exposure and an outcome. The OR represents the odds that an outcome...
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
@wcandillon I meant that on iOS you get that functionality out of the box by playing with the
maximumZoomScale
andminimumZoomScale
props. They work both vertically and horizontally.On Android you have to implement it yourself (which is why I’m using the
gesture-handler
+reanimated
).@mmazzarolo I stumbled exactly on the same problem than the one you describe and I didn’t find an adequate solution yet, have you? 😃