You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read property '_tag' of null
at ReactNativeBaseComponent.Mixin.mountComponent (node_modules/react/lib/ReactNativeBaseComponent.js:181:45)
at Object.ReactReconciler.mountComponent (node_modules/react/lib/ReactReconciler.js:47:35)
at ReactCompositeComponentMixin.performInitialMount (node_modules/react/lib/ReactCompositeComponent.js:370:34)
at ReactCompositeComponentMixin.mountComponent (node_modules/react/lib/ReactCompositeComponent.js:257:21)
at Object.ReactReconciler.mountComponent (node_modules/react/lib/ReactReconciler.js:47:35)
at ReactCompositeComponentMixin.performInitialMount (node_modules/react/lib/ReactCompositeComponent.js:370:34)
at ReactCompositeComponentMixin.mountComponent (node_modules/react/lib/ReactCompositeComponent.js:257:21)
at Object.ReactReconciler.mountComponent (node_modules/react/lib/ReactReconciler.js:47:35)
at ReactCompositeComponentMixin.performInitialMount (node_modules/react/lib/ReactCompositeComponent.js:370:34)
at ReactCompositeComponentMixin.mountComponent (node_modules/react/lib/ReactCompositeComponent.js:257:21)
Adding a mock for TabBarIOS (in the same way as the mock for Modal was added: #1739) resolves this error. However, TabBarIOS.Item returns the same error, and trying to mock TabBarIOS.Item the same way:
Cannot find module 'TabBarIOS.Item' from 'setup.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:151:17)
Is there a way to mock tab bar items? I'd be happy to submit a PR with the mocks for both, just need a little help with the syntax (I'm pretty new to Jest).
Thanks!
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
TabBarIOS is not mocked:
Adding a mock for TabBarIOS (in the same way as the mock for Modal was added: #1739) resolves this error. However, TabBarIOS.Item returns the same error, and trying to mock TabBarIOS.Item the same way:
mock('TabBarIOS.Item', () => mockReactNative.mockComponent('TabBarIOS.Item')).
results in the following error:
Is there a way to mock tab bar items? I'd be happy to submit a PR with the mocks for both, just need a little help with the syntax (I'm pretty new to Jest).
Thanks!
The text was updated successfully, but these errors were encountered: