-
Notifications
You must be signed in to change notification settings - Fork 175
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
FlashList won't render properly in android. #411
Labels
question
Further information is requested
Comments
Adding { flex: 1} really did the trick, thanks. |
same question |
Same issue with my also getting this error in android but working fine in ios, any idea please suggest. |
+1 |
This patch should help |
maherzaidoune
added a commit
to maherzaidoune/react-native-collapsible-tab-view
that referenced
this issue
Oct 3, 2024
This should fix PedroBern#411
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote a demo based on the official example. The code is from '/example/src/FlashList.tsx'.
But when i opened it in android simualtor, i got a warning: ' FlashList's rendered size is not usable. Either the height or width is too small (<2px). Please make sure that the parent view of the list has a valid size. FlashList will match the size of the parent.'
And the content area was blank. FlashList was not rendered properly. But it works fine on IOS plantform.
I think it maybe the android 'flex:1' problem. So I go to the source code 'src/Container.tsx'.
And find the
function tabNamesArray.map()
returns the View Component, where the FlashList would be rendered.But only have
key={i}
in its props.If I add
style={{ flex: 1}}
, it will render FlashList properly.Is this a bug or I did not use the Tab.FlashList rightly? all my demo codes are from Example folder.
But some days ago i did not face the problem.
Thanks.
The text was updated successfully, but these errors were encountered: