-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refershing/Refresh Control #108
Comments
Hi @dandresfg , could you be more specific on what do you need? If you update the |
i mean |
I see. I think we could add a prop @hoangnm what do you think of a @dandresfg as a workaround, for now you can try this (somewhat hacky) solution to have a spinner. const { height: SCREEN_HEIGHT, width: SCREEN_WIDTH } = Dimensions.get('window');
const PADDING = 60; // Value defined inside the library
const CONTAINER_HEIGHT = SCREEN_HEIGHT - PADDING;
const CONTAINER_WIDTH = SCREEN_WIDTH - PADDING;
let isRefreshing = true; // could be state, prop, etc
// ...
<View style={{ flex: 1 }}>
{isRefreshing && (
<ActivityIndicator
style={{
position: 'absolute',
top: CONTAINER_HEIGHT / 2,
right: CONTAINER_WIDTH / 2,
zIndex: 1,
}}
// ... more props
/>
)}
<WeekView
events={events}
// ... more props
/>
</View> |
@dandresfg regarding your comment on the PR:
As I said in the previous comment, I was not adding the "pull to refresh" behavior for the moment.
For now, with the code from the PR, you can set the Maybe later we can try adding a callback for the "scroll up at the top" action, something like |
Sorry, get lost and i wrote in the PR. I mean, i edited the library to start at 7:00am (Other thing that could be awesome is starting hour, hiding all the previous hours) I got a refreshing, thanks for your code, works great (i put outside the library). I want to add the pull to refresh i tried manually but doesnt work (dunno why) How can i added it by myself ? (and looking for some ideas, cuz the traditional one doesnt work as expected) |
I setup the pull-to-refresh feature in this experimental branch, should be more or less what you need. See the latest commit with the code modifications. You can start from this branch and make more custom changes as needed. The result looks like this: experimental-scrollview-on-refresh.mp4This change is not compatible with the #112 PR, so it will remain only as an experimental branch for now. |
Regarding this topic, the #70 issue asks for a similar feature (end-hour at the bottom). The full implementation I'd say is tricky, there are multiple edge cases to handle, and more. If you already implemented it, you are welcome to send a PR or share the code, if you'd like! |
The video is not playable (same as the issue onSwipeNext twice, it isnt playable too). Its just like the video is corrupted or deleted
I will take a look as soon as possible. |
Opera, but yeah i think this is what im looking for |
Any possibilities of add this ?
The text was updated successfully, but these errors were encountered: