-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
[v3] Performance issue since migration from 2.0 -> 3.0 #398
Comments
I don't see anything specific. Can you give me some repro so I can play around? |
Hey @jpudysz I've made a minimal demo repo here with a fresh expo install, here is the link https://github.com/houseofduck/react-native-unistyles-perf-issues-minimal-demo I managed to not get the style not bound error at one point, but it was still choppy. Sorry in advance if I have made a silly mistake somewhere! To recreate the issue press the plus button in the bottom tabs, and you should be able to see the changes from a fresh expo install in the commit history. |
Thanks and no worries. |
Is it ok now? 😄 RocketSim_Recording_iPhone_16_Pro_Max_6.9_2024-12-09_07.26.35.mp4 |
Thank you! |
Hey @jpudysz hope you are well sorry to tag but this issue is currently closed. the issue is improved for me in 3.0.0 beta 2 but its still very low fps compared to unistyles 2.0.0 is there a some debugging steps I can do to provide you more information. |
Hey, how do you know it has a lower FPS? Does it look like the video I posted above? |
Hey @jpudysz, sorry to be likely surfacing errors unrelated to your project more than once now 😭. After reading the following I believe it may just be a new architecture issue with react native bottom sheet. Issue on gorham bottom sheet package RPReplay_Final1734203959.MP4This is a video from my device, although I will note it looks noticeably choppier on the device than this video for whatever reason. It just basically has some quite noticeable lag when opening the bottom sheet, according to the issue it is affecting multiple packages. The changes you previously made has made an improvement however! But assume we can keep this closed. |
Ah! Thanks for the reference. That’s what I though as I don’t apply any animations 😇 |
@samducker yeah experiencing the same behaviour also not as noticeable in recordings. Most likely issue with reanimated |
Description
So I followed the migration guide from unistyles 2.0 -> 3.0
I have this tab button which opens a bottom sheet, and since I moved over to the new version it renders extremely slowly, before it worked almost instantly now it is noticeably choppy.
Is there something I am doing incorrectly in my approach, my new code is below.
I also sometimes get Style is not bound error! but I'm not sure why, as I don't see where Im merging styles anywhere.
(tabs)/_layout.tsx
generic-bottom-sheet.tsx
bottom-sheet-navigation-item.tsx
Steps to Reproduce
Untested on android
Snack or Repository Link (Optional)
No response
Unistyles Version
3.0.0
React Native Version
0.76.3
Platforms
iOS
Expo
Yes
The text was updated successfully, but these errors were encountered: