Comments (9)
Hmm this is weird, you should receive an onScroll event every 200ms
from react-native.
If I set a value for throttleScrollCallbackMS
then it works :-)
from react-native.
@vjeux - the comment in the code is misleading, looks like we don't default to 200ms. @nick you are right, to receive the event continuously, you have to explicitly tell how often it should fire. The design decision here was driven by perf considerations - we don't want to spam the bridge with commands you are not interested in. If you want to animate something when scrolling, set throttleScrollCallbackMS
to 16ms or less.
from react-native.
Just made a diff internally to add a warning. D1833444 (for tracking purposes)
from react-native.
Warning is now in: dd78b09
from react-native.
I set throttleScrollCallbackMS={16}
and the warning doesn't show but I seem to still only get one event fired. Also only seeing one event logged in the UIExplorer example.
from react-native.
Don't work for listview
from react-native.
The throttleScrollCallbacksMS property is now called scrollEventThrottle.
from react-native.
Looks like the warning wasn't updated when the property name was changed.
from react-native.
Related Issues (20)
- Appreance.getColorScheme() always returns "light" | Android | IOS | React Native | Expo HOT 2
- Command PhaseScriptExecution failed with a nonzero exit code with ios build HOT 6
- Unable to add private maven repo to the React native project directly HOT 6
- Using initialScrollIndex with Flatlist will cause missing items with react native HOT 1
- Unexpected keyword 'typeof' HOT 1
- ScrollView may cause some confusion when deleting some child items after sliding at the child level HOT 4
- newArchEnabled=true not working on android HOT 2
- java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~Q1vjL-Sbogpgp23q4KuiUA==/com.vastmindz-2Qq1zN8YfrsoxWIi-B5xZQ==/base.apk!/lib/arm64-v8a/libfolly_runtime.so"... HOT 6
- [v0.74] Android: Promises from native modules stuck HOT 5
- [v0.74.1]Cursor prop is causing crash on Text HOT 2
- TextInput (IOS) : maxLength & multiline true = onChangeText multiple call HOT 4
- 2 files found with path 'lib/arm64-v8a/libopencv_java4.so' from inputs: - /Users/wegile-1003/.gradle/caches/transforms-3/8ec77b58992a0a620e60c240eaed7c29/transformed/jetified-rppg_core-0.2.0/jni/arm64-v8a/libopencv_java4.so - /Users/wegile-1003/.gradle/caches/transforms-3/a576edfdc1ae89d711e78c8d27ec535b/transformed/jetified-opencv-android-4.1.2/jni/arm64-v8a/libopencv_java4.so If you are using jniLibs and CMake IMPORTED targets, see HOT 4
- No visible error is shown on iOS Bridgeless when there is an error before `AppRegistry.registerComponent` HOT 1
- yarn ios error ! error Could not find scheme greenhouse. Please make sure the schema you want to run exists. HOT 3
- App Crashes When Hermes is Disabled on Some Android 10 Devices `couldn't find DSO to load: libhermes.so SoSource` HOT 4
- React Query isStale is not working after upgrading react-native to 0.74 HOT 1
- In Android touchMove is cancelled when intercepted by native gesture from child HOT 3
- Zoom in & reset shortcuts are broken on experimental debugger HOT 3
- Library not loaded: '@rpath/FBLPromises.framework/FBLPromises' Referenced from HOT 5
- Socket Rocket Upgrade to 0.7.0 in react native version 0.73 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native.