NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

`npm run storybook` should work in NativeBase/example

Open silgal opened this issue 3 years ago • 10 comments

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 avatar Feb 22 '22 08:02 silgal

@silgal Thanks for reporting! We're looking into this.

surajahmed avatar Feb 28 '22 06:02 surajahmed

Any more info on this one?

barry-velasquez avatar Mar 25 '22 23:03 barry-velasquez

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.

stale[bot] avatar May 25 '22 20:05 stale[bot]

Any more info on this one?

silgal avatar May 26 '22 04:05 silgal

There is some loader issue with the storybook. Please try running with expo for now. We'll keep you updated. Thanks for your patience.

surajahmed avatar Jun 02 '22 11:06 surajahmed

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

dohomi avatar Aug 14 '22 08:08 dohomi

Hi @dohomi, by storybook you mean react storybook or storybook inside nativebase repo?

Viraj-10 avatar Sep 19 '22 17:09 Viraj-10

@Viraj-10 Storybook for the use with nativebase.

dohomi avatar Sep 20 '22 01:09 dohomi

Any updates?

theaa-zeeshan-khan avatar Mar 21 '23 15:03 theaa-zeeshan-khan

did anyone found a workaround?

macrozone avatar Jun 30 '23 08:06 macrozone