-
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
React Native on macOS or on web - broken width and month not changing #198
Comments
@rdewolff I'll check this out ASAP In the broken web app, where are events placed in the screen? For example an event in the central week, the week before and the week after. |
I haven't added meets on the first test I did. Let me give it a try and get back to u |
@rdewolff I was able to reproduce it and display some dummy events, so don't worry: |
Aaah great, you got a setup working 🥳 |
I just tried to display some events in the grid but did not get it working. Did you already do some fixes @pdpino to get your event displayed? |
TL;DR: I fixed some things, but is still not working 100%, probably due to an upstream bug from react-native-web (btw the cursor is not moving because I was scrolling with the wheel) Details: There are multiple things in the initial example that were wrong:
What I did:
4.2 is probably a dealbreaker for most apps. We should corroborate if it is a bug from react-native-web; hopefully they will have a workaround soon |
@rdewolff tbh I don't remember if I had already made a small fix for that demo 😆 I made a draft PR with the fixes so far |
Concerning 4.2, is there a way to use an alternative to |
The options I can think of are not good, e.g.
|
So our best bet might be to wait for Maybe this comment is related to our issue: expo/expo#16822 (comment) ? |
How can we get this issue moving forward? |
PR #201 will fix up to 4.1. As to 4.2, I'm afraid without scroll events in web there is not much more we can do. I see a lot of attention in rn-web, (e.g. necolas/react-native-web#2249, necolas/react-native-web#2241), hopefully they will have a fix soon
|
PR #201 was merged 🥳 |
@rdewolff necolas (rn-web 's author) commented:
I cannot work on that right now. To recap, I think the options are:
or wait for other libraries, e.g.:
with 2 or 3 we could try to make the change only for web (instead of web and mobile), if that's simpler. In any case, have in mind is a big refactor and may cause conflicts with other stuff (animations, etc) |
The current workaround is to add navigation button to navigate to previous or next week. |
Just found this https://github.com/Flipkart/recyclerlistview |
Sorry for the late reply. @rdewolff recyclerlistview does not support bidirectional infinite scrolling: Flipkart/recyclerlistview#647 (comment) They implemented a fix for VirtualizedList, and is published in a fork of react-native: facebook/react-native#29466 (comment). Using this might fix the problem? |
The library is not working when compiling a react-native project for macOS (Catalyst for example).
It's not working either when using react-native-web version.
The following elements are not working:
Please find a video illustrating the first examples:
Steps to reproduce:
react-native-week-view
packageViewPropTypes
props #196<WeekView... />
component on a pageNotes
The text was updated successfully, but these errors were encountered: