GeekyAnts / NativeBase

Mobile-first, accessible components for React Native & Web to build consistent UI across Android, iOS and Web.
https://nativebase.io/
MIT License
20.15k stars 2.38k forks source link

`npm run storybook` should work in NativeBase/example #4665

Open silgal opened 2 years ago

silgal commented 2 years ago

Description

npm run storybook should work in NativeBase/example

CodeSandbox/Snack link

N/A

Steps to reproduce

#!/usr/bin/env sh
git clone git@github.com:GeekyAnts/NativeBase.git /tmp/NativeBase
cd /tmp/NativeBase/example
yarn
yarn storybook

NativeBase Version

not sure, not in package.json

Platform

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
surajahmed commented 2 years ago

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

barry-velasquez commented 2 years ago

Any more info on this one?

stale[bot] commented 2 years ago

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.

silgal commented 2 years ago

Any more info on this one?

surajahmed commented 2 years ago

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

dohomi commented 2 years ago

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

Viraj-10 commented 1 year ago

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

dohomi commented 1 year ago

@Viraj-10 Storybook for the use with nativebase.

theaa-zeeshan-khan commented 1 year ago

Any updates?

macrozone commented 1 year ago

did anyone found a workaround?