-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
[v4] [Reanimated] Tried to modify key reduceMotion
of an object which has been already passed to a worklet
#1854
Comments
any solution yet? |
ANY SOLUTION |
@MonishReddyDev @pixellet14 The PR was just approved a few hours ago. Give them time to release a new version. |
Its still showing up for me. |
I have the same problem |
@paulschreiber because its not showing up for you doesn't mean you should put a thumbs down on others comments. It happens when i open the bottomsheetmodal |
@ebere-hoag I am still seeing the problem. I am putting the 👎 because the people are being impatient. The fix has been approved, but not merged or released. Piling on "me too" comments at this point is not helpful. |
@paulschreiber Anyone can approve the pull requests, so I'm not sure that really means anything. It hasn't been approved by @gorhom yet :) |
if I downgrade to 4.6.1, will this warning be gone? |
nothing works till yet. any update? neither have to use yellowbox/logbox for now. |
did someone resolve it |
I have the same problem |
+1 |
There is a PR #1848 |
I have the same problem |
|
thanks. it's working . |
Merging anytime soon? |
+1 |
6 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
another quick workaround without having to fiddle with patches is to set the installation to the proposed PR for now {
"dependencies": {
"@gorhom/bottom-sheet": "pafry7/react-native-bottom-sheet#fix/config-reducerMotion-in-worklet",
}
} |
@1mike12 How do I go about with this your suggestion. Which of the app dependencies? |
Thanks for the tip @1mike12, and thanks for the fix @pafry7! For yarn, add the following to the root "resolutions": {
"@gorhom/bottom-sheet": "github:pafry7/react-native-bottom-sheet#fix/config-reducerMotion-in-worklet"
}, See https://yarnpkg.com/configuration/manifest#resolutions for what it does. Then run
I had to clear the Metro cache before it started to work. |
Any idea why even with this fix I get this warning after modal is opened second time? First open / close is working fine, but next time when I try to open the same or another BottomSheetModal it shows warning with reduceMotion info. Is it something wrong with implementation here? I use same HOC for all my modals. In children it's usually BottomSheetScrollView. Tried both patch-package and this solution. I can see these code changes in my node_modules so fix is there.
|
fixed with #1848 |
@gorhom Can we reopen this issue or should I create a new one? There is still some problem with reopening bottom sheet, same warnings even with 4.6.4. Not only for me #1848 (comment) |
I have the same issue |
same |
When |
related to: #1974 |
There is no more warnings in my app after upgrading to 5.0.4 (from 4.6.4) |
Bug
[Reanimated] Tried to modify key
reduceMotion
of an object which has been already passed to a worklet. Seehttps://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#tried-to-modify-key-of-an-object-which-has-been-converted-to-a-shareable
Environment info
Steps To Reproduce
Open a Bottomsheet
Describe what you expected to happen:
Reproducible sample code
react-native-bottom-sheet/src/components/bottomSheet/BottomSheet.tsx
Line 1202 in 4b2a739
The text was updated successfully, but these errors were encountered: