Skip to content
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

Re-layout using forceNonDeterministicRendering when window size changes #228

Open
tafelito opened this issue Aug 13, 2018 · 4 comments
Open

Comments

@tafelito
Copy link
Contributor

tafelito commented Aug 13, 2018

@naqvitalha I'm using an ExternalScrollView as mentioned here to control the max width and layout changes. The problem I have is when I use forceNonDeterministicRendering and I resize the screen the items don't re-layout. I have to scroll the list for them to be re calculated.

Here is a CodeSandbox where you can see it

https://codesandbox.io/s/kmq94j9y7o

I use RLV from web package because the react-native one that no t have the useWindowScroller and I need that for my app

Do I need to use extendedState to refresh the content when the size changes?

@tafelito tafelito changed the title Re-layout using forceNonDeterministicRendering Re-layout using forceNonDeterministicRendering when window size changes Aug 13, 2018
@naqvitalha
Copy link
Collaborator

You forgot to set canChangeSize flag on RLV. Try that and see if it works for you.

@tafelito
Copy link
Contributor Author

yeah that was what I first tried but doesn't seem to do much

@tafelito
Copy link
Contributor Author

@naqvitalha any ideas on how to fix this?

@aarshaw
Copy link

aarshaw commented Jan 8, 2020

@tafelito @naqvitalha did you ever get this working? any tips?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants