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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[unimodules-react-native-adapter] Flush UI blocks when needed #4125
Conversation
|
From my short debugging investigation it looked like React doesn鈥檛 do much if the layout hasn鈥檛 changed. (In |
I didn't look into the implementation |
a) I think we could either change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change addUIBlock into executeUIBlock
I think this is a good idea -- we probably want a native API to add a block in addition to a JS API.
3fb5ada
to
fb9af16
Compare
What do you think about running UI blocks synchronously on the main thread? |
I think it'd be better to execute the UI blocks asynchronously by default for a few reasons:
Additionally, it looks like UIManager handles running UI blocks in |
fb9af16
to
9bf2cec
Compare
9bf2cec
to
5dd9925
Compare
) # Why Fixes expo#2288. # How Adding a UI block wasn't making React run the blocks as soon as possible. 馃し鈥嶁檪 # Test Plan With this fix applied `Camera.takePicture` works as expected.
) # Why Fixes expo#2288. # How Adding a UI block wasn't making React run the blocks as soon as possible. 馃し鈥嶁檪 # Test Plan With this fix applied `Camera.takePicture` works as expected.
Why
Fixes #2288.
How
Adding a UI block wasn't making React run the blocks as soon as possible. 馃し鈥嶁檪
Test Plan
With this fix applied
Camera.takePicture
works as expected.