Conversation
|
just wanted to add that i tested this PR in our app and its working fine 🎊 |
|
This PR is what I was searching for. It fixes plenty of issues for me, specially with react-native-bottom-sheet. Edit: |
|
Same here, this will fix a bunch of bugs I've investigated. |
|
@piaskowyk any chance to get more traction on this PR here? Or do you expect for it to take some more time? |
|
#2580 finally was merged, so I can deal with this now. |
|
I want to release these changes in 2.5.0 |
8a3d77b to
164ba30
Compare
|
@piaskowyk when do you think 2.5.0 will be out? We're desperately waiting for this PR to land. Or could you create a pre-release already? |
|
@hirbod I worked on this issue, and I discovered a serious problem with the order of mapper execution. In other words, there is a possibility to perform updates on not fully rendered components. I've been talking to @kmagiera bout this PR and we decided that this is just a fix of effect not a source of the problem. Even if I release these changes it can be harmful in some cases, and we don't want to add regression. So we decided to fix it on the native side. I have some unpublished prototypes but I need some time to polish them. At this moment I am only one maintainer of reanimated so that's why it's taking so long - sorry for that. |
|
@piaskowyk thank you very much for the update. I understand your concerns. Personally speaking, I haven't had any regressions so far but good thing that you've catched them (I am on 2.3.1 and using a patch-file to add your changes), and it fixes bunch of issues with bottom-sheet and moti for me. As you can see, there are plenty of issues linking to this here and the operations order issue. So I will stick with the patch for now and hope that those native fixes will tackle the core problem. |
|
@piaskowyk I can also confirm regressions now. So good thing that you've catched it. |
|
@hirbod I found an easier solution, could you check if it works for you? |
|
@piaskowyk shall I install |
|
Both should work the same. |
|
@piaskowyk in all of my tests, the bugs with react-native-bottom-sheet, react-native-vision-camera and moti are gone. The regressions I've encountered are gone as well. From my end, this PR looks rock solid! |
|
Thanks for the help ❤️ |
|
@tomekzaw hi! Just writing to enquire when the release with this update is planned? Thanks |
Description
We can't use just initial style as the default style in every render because these styles can be outdated. We can't change the default style after the first render, because after the second render we don't run mapper that's why the component can change the style to the initial value.
Related:
code
Before
Screen.Recording.2022-03-14.at.10.22.09.mov
Screen.Recording.2022-03-14.at.12.54.58.mov
After
Screen.Recording.2022-01-17.at.16.41.55.mov
code
code2
Still works
Screen.Recording.2022-01-17.at.16.44.45.mov
code2