bryaneaton13 / react-pull-to-refresh Goto Github PK
View Code? Open in Web Editor NEWReact component for web pull to refresh
Home Page: https://www.npmjs.com/package/react-pull-to-refresh
License: MIT License
React component for web pull to refresh
Home Page: https://www.npmjs.com/package/react-pull-to-refresh
License: MIT License
⨯ node_modules\hammerjs\hammer.js (2643:3) @ window
⨯ ReferenceError: window is not defined
Pull to refresh works well, while something goes wrong when i want to push up.
Hi,
Is it possible for you to add a DefinitlyTyped version so that I can use the library in my typescript applications?
Hi,
When I run 'webpack' I keep getting a "Module not found: Error: Cannot resolve module 'react-pull-to-refresh'"
How to import this module?
Thx~~~
My 'node' version is '8.1.13' , 'npm' version is '5.0.3'.
Can you give a simple example?
This assumes we're always waiting for a promise to resolve. With Redux, this promise is hidden from us, so we're normally wait for data change in props.
Is there anyway we could use this library the redux way?
Have you think of adding a pull up to load more data? I want an infinite scroll but is problematic to just trigger the event at X scroll position. Maybe this effect of pulling can be useful for the experience.
If not, i would like to talk with you to create a new one. Good day mate.
Is it possible to somehow wrap all my main body content in the pull-to-refresh component but specify only a specific component inside to trigger the pull? So, only when pandown is detected on the header component for example?
i clone the project and npm install all the dependencies,and try to build to get the dist package with"npm run prepublish",however, there is sth wrong with the command of build:file and minify,.
"Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead."
As the title, Its better to add a new props that allow us to control the speed for smooth scroll up animation, thanks
I need component which has both: pull-to-refresh and load-more on scroll down.
How to add infinite scrolling to your component?
I'm getting this error after install:
/node_modules/hammerjs/hammer.js:2643
[0] })(window, document, 'Hammer');
[0] ^
[0]
[0] ReferenceError: window is not defined
The official demo can be reproduced:
Pulling down again during the pull-down loading will cause the loading prompt to be retracted
On a mobile device or in chrome dev tools emulating a device I cannot scroll. Scrolling up does nothing and scrolling down activates the pull to refresh.
What exactly are the loading and icon props doing? Is loading the arrow up and icon the arrow down? And is there a prop available so I can customize the loading animation that should appear?
When I'm trying to render on the server I'm getting an error on hammer.js that window is not defined.
ReferenceError: window is not defined at Object.<anonymous> (/my-project/node_modules/react-pull-to-refresh/node_modules/hammerjs/hammer.js:2643:4)
It would be nice we can support server side rendering, as a workaround I will need to check if window is defined before I require react-pull-to-refresh
var PullToRefresh
if (global.window) {
PullToRefresh = require('react-pull-to-refresh')
}
Module not found: Error: Can't resolve 'react/jsx-runtime' in 'C:\Users\a.zhailkhanova\Documents\JI projects\mobile-app-client\node_modules\react-pull-to-refresh\dist'
Did you mean 'jsx-runtime.js'?
BREAKING CHANGE: The request 'react/jsx-runtime' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.