-
Notifications
You must be signed in to change notification settings - Fork 426
-
Notifications
You must be signed in to change notification settings - Fork 426
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
RecyclerListView needs to have a bounded size #144
Comments
I m facing the same issue. But if i give RecyclerListView's parent container fixed height and width it shows starting two three images, even if i gave its parent container height to be equal to deviceHeight. It also Distort my css when using with card |
@AnandKuhar Can you give me a sample on codesandbox.io? The problem is body is not auto stretched on web. And RLV containers by default enable |
wrap the
|
@naqvitalha Just wonder if I can add |
@peteroid In that case estimated no of items to mount will be computed incorrectly. In future we plan to add |
@naqvitalha Is there any way we can catch this error gracefully? By throwing out the error, our app would crash directly. Can we have a prop like |
I was able to fix this error by adding in {minHeight: 1, minWidth: 1} and removing the following 2 properties from my container:
|
I tried all of these but still am unable to fix this |
<View style={{minHeight: 1, minWidth: 1}}>
This is my code when i run this the browser hangs and continues to load indefinitely |
i managed it with this: |
I add
|
Closing due to inactivity. |
I think there should be a clear example for cases where we need an infinite list within a view that is rendering some other elements as well, is not a common case is mobile but is a lot common in web. I am currently struggling to achieve this. |
After adding
|
I still have the same problem. And when I put |
In my case i have the prop |
Hi All, I was also facing this issue, settled through the following way Basically, I was using import { SafeAreaView } from 'react-native-safe-area-context'; so I think safe area view bounds calculation takes some time and meanwhile RLV throw the error, by changing Safeareaview with "useSafeAreaInsets" hook it works fine. Thanks! |
<RecyclerListView |
Oh thanks man you saved me. |
this is work for me :
|
thats work for me:
|
Hi, I've been trying to use this component following the example in the README but it gives me the following error:
If I comment these lines it works perfectly:
recyclerlistview/src/core/RecyclerListView.tsx
Lines 326 to 328 in 77d4791
I've logged the values of
layout
andthis._layout
and they are{height: 0, width: 0}
and {width: 414, x: 0, height: 0, y: 0}` respectively.The only particularity of my usage is the
RecyclerListView
is on aTabNavigator
. Any idea why this might be happening?The code of my app is here in case you might want to take a look (it's ReasonML, though :( ) https://github.com/erizocosmico/myfosdem/blob/feature/recyclerlistview/re/components/eventList.re#L90-L140
The text was updated successfully, but these errors were encountered: