react-native: Error in React native storybook
Describe the bug When adding storybook view in react native app as main component using appRegistry, even without loading anything the app is crashing with below error. This is a monorepo setup using lerna.
[Tue Jul 21 2020 19:04:32.685] ERROR TypeError: undefined is not an object (evaluating '_this.props.updateCellsBatchingPeriod')
This error is located at:
in VirtualizedList (at VirtualizedSectionList.js:216)
in VirtualizedSectionList (at SectionList.js:246)
in SectionList
in emotion(SectionList) (at StoryListView/index.tsx:176)
in RCTSafeAreaView (at SafeAreaView.js:51)
in ForwardRef(SafeAreaView) (at StoryListView/index.tsx:167)
in StoryListView (at OnDeviceUI/index.tsx:152)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:165)
in AnimatedComponent (at createAnimatedComponent.js:215)
in ForwardRef(AnimatedComponentWrapper)
in emotion(Styled) (at panel.tsx:16)
in Panel (at OnDeviceUI/index.tsx:151)
in RCTView (at View.js:34)
in View (at absolute-positioned-keyboard-aware-view.tsx:91)
in RCTView (at View.js:34)
in View (at absolute-positioned-keyboard-aware-view.tsx:90)
in AbsolutePositionedKeyboardAwareView (at OnDeviceUI/index.tsx:136)
in RCTView (at View.js:34)
in View (at KeyboardAvoidingView.js:204)
in KeyboardAvoidingView (at OnDeviceUI/index.tsx:130)
in RCTSafeAreaView (at SafeAreaView.js:51)
in ForwardRef(SafeAreaView) (at OnDeviceUI/index.tsx:129)
in OnDeviceUI (at preview/index.tsx:148)
in ThemeProvider (at preview/index.tsx:147)
in StorybookRoot (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at AppContainer.js:106)
in RCTView (at View.js:34)
in View (at AppContainer.js:132)
in AppContainer (at renderApplication.js:39)
To Reproduce Steps to reproduce the behavior:
- Setup storybook for react native in lastest react native and storybook v5.3.19.
- Run the app after including storybook component as app entry point.
Expected behavior Storybook is loaded
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (8 by maintainers)
@amalfra any luck with example app? i’m seeing same issue.
this seems like an old issue related to 5.3 so im closing. Let me know if I should reopen
@amalfra thanks for the extra info, hopefully I can look at this soon.