NativeBase
NativeBase copied to clipboard
`npm run storybook` should work in NativeBase/example
Description
npm run storybook should work in NativeBase/example
CodeSandbox/Snack link
N/A
Steps to reproduce
#!/usr/bin/env sh
git clone [email protected]:GeekyAnts/NativeBase.git /tmp/NativeBase
cd /tmp/NativeBase/example
yarn
yarn storybook
NativeBase Version
not sure, not in package.json
Platform
- [ ] Android
- [ ] CRA
- [X] Expo
- [ ] iOS
- [ ] Next
Other Platform
No response
Additional Information
ERROR in ./node_modules/react-native/index.js 13:7
Module parse failed: Unexpected token (13:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| 'use strict';
|
> import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
| import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
| import typeof Button from './Libraries/Components/Button';
@ ./node_modules/@storybook/addon-ondevice-actions/dist/components/ActionLogger/Inspect.js 26:21-44
@ ./node_modules/@storybook/addon-ondevice-actions/dist/components/ActionLogger/index.js
@ ./node_modules/@storybook/addon-ondevice-actions/dist/containers/ActionLogger/index.js
@ ./node_modules/@storybook/addon-ondevice-actions/dist/index.js
@ ./node_modules/@storybook/addon-ondevice-actions/register.js
@ ./storybook/addons.ts
@ multi ./node_modules/@storybook/react-native-server/node_modules/@storybook/core/dist/server/common/polyfills.js ./storybook/addons.ts ./node_modules/@storybook/react-native-server/dist/client/manager/index.js
@silgal Thanks for reporting! We're looking into this.
Any more info on this one?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Any more info on this one?
There is some loader issue with the storybook. Please try running with expo for now. We'll keep you updated. Thanks for your patience.
I would love to get Storybook + native-base work side by side. currently I hit a brick seems that internal structure on how to do styles is not supported with Storybook
Hi @dohomi, by storybook you mean react storybook or storybook inside nativebase repo?
@Viraj-10 Storybook for the use with nativebase.
Any updates?
did anyone found a workaround?