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

support onLayout on <View/> #45

Closed
twop opened this issue Jan 5, 2019 · 3 comments
Closed

support onLayout on <View/> #45

twop opened this issue Jan 5, 2019 · 3 comments

Comments

@twop
Copy link
Contributor

twop commented Jan 5, 2019

Needed for responsive layout, and VirtualList etc (also needed for layout animations in the future)

https://facebook.github.io/react-native/docs/view#onlayout

@cztomsik
Copy link
Owner

cztomsik commented Jan 5, 2019

if you want to take it, it should be enough to call onLayout during Surface/TextContainer.write()

@cztomsik
Copy link
Owner

collect all the onLayout-interested views (their surface ids) and send them as part of the batch, so that all the resulting layouts can be returned and then we can invoke respective onLayout callbacks
https://facebook.github.io/react-native/docs/view#onlayout

consider adding third argument to ffi send() which would be async callback with the result

@cztomsik
Copy link
Owner

RN api was discontinued, virtual scroll will be provided by user-space libs (react-window etc.)

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

2 participants