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.

Would a measure(ref) function make sense?

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mmazzarolocommented, Dec 3, 2018

@wcandillon I meant that on iOS you get that functionality out of the box by playing with the maximumZoomScale and minimumZoomScale 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).

0reactions
wcandilloncommented, Mar 12, 2019

@mmazzarolo I stumbled exactly on the same problem than the one you describe and I didn’t find an adequate solution yet, have you? 😃

Read more comments on GitHub >

github_iconTop 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 >

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