-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
@storybook/react-native
doesn't fully support [email protected] and [email protected]
#8221
Comments
I've also received a bunch of yellow boxes and the sidebar overlay problem using @5.2.0 "stable" :( Thanks for making a detailed issue though @bericp1 I've also experienced problems with some UI but I can't confirm right now if it's related to storybook upgrade or react-native. I'll update this post later. UPDATE: those bugs also appear even if you downgrade storybook version to |
This should help with the warnings seen in #8221
#8235 should help with the yellow boxes. Haven't had a chance to investigate the layout issue yet though. |
Thanks a lot for helping @benoitdion 🙏 |
Good golly!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.6 containing PR #8235 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
@storybook/react-native
(both onlatest
which is5.2.1
and the most recent alpha which is5.3.0-alpha.4
) works but is buggy on app launch out of the box on[email protected]
and[email protected]
.On app launch you get 2
YellowBox
warnings, one becausecomponentWillReceiveProps
has been renamed and the other forcomponentWillMount
:Which seem to be related to
react-native-swipe-gestures
'sGestureRecognizer
using deprecated lifecycle methods.The bigger issue though is that on app launch, after you dismiss the YelloBox errors, the addons panel is shown right above the actual Preview viewport even though it hasn't been activated and the bottom toolbar indicates the Preview is what should be visible. Switching to Navigator or Addons and then switching back to Preview resolves the issue.
It's getting a little annoying now that [email protected]+ ships with "Fast Reload" which is enabled by default so any file change causes the app to reload and that triggers this UI bug.
To Reproduce
Steps to reproduce the behavior:
npx react-native init FooApp
Expected behavior
As with previous react / react-native versions, the Addons panel should not render overlayed on the Preview panel on launch and should only show when it's navigated to via the bottom toolbar.
Screenshots
System:
Environment Info:
Additional context
Not sure if this is [email protected] or [email protected] causing the issue. The latter was just released today so 🤷♂
The text was updated successfully, but these errors were encountered: