storybookjs / native

📱 Storybook for Native: iOS, Android, Flutter
MIT License
184 stars 29 forks source link

[Bug] Native Examples Not Working/Appearing #74

Open plflanagan opened 2 years ago

plflanagan commented 2 years ago

Describe the bug

The various examples at https://github.com/storybookjs/native#examples do not work, namely the storybook examples at the following urls: https://storybookjs.github.io/native/@storybook/native-ios-example-deep-link/index.html?path=/story/button--example https://storybookjs.github.io/native/@storybook/native-controls-example/index.html?path=/story/button--example https://storybookjs.github.io/native/@storybook/native-cross-platform-example/index.html?path=/story/android--button https://storybookjs.github.io/native/@storybook/native-flutter-example/index.html?path=/story/android--button

If I follow the link to static examples, those don't seem to work either. For example, this link sends me to a non-functioning storybook: https://storybookjs.github.io/native/@storybook/native-ios-example-deep-link/index.html?path=/story/button--example

Presumably the path is incomplete?

Steps to reproduce the behavior

  1. Go to any of the links above
  2. See "App not found, please verify URL" errors

Expected behavior

I expected to see a storybook with an integrated appetize build.

Screenshots and/or logs

Screen Shot 2022-07-28 at 1 37 09 PM

Environment

4tee commented 1 year ago

I tried setting it up for android app development. But no luck too. Would love to hear anyone has managed to setup and run those examples.

marcosmko commented 1 year ago

same problem here 🤔

marcosmko commented 1 year ago

oh finally got it, before running yarn start you need to tell the framework to use a local simulator by running the following command

export STORYBOOK_NATIVE_LOCAL_EMULATOR="true"

note that you need to have a running simulator before starting server

jeromecovington commented 9 months ago

@marcosmko does using the STORYBOOK_NATIVE_LOCAL_EMULATOR env var bypass the need to upload the app to Appetize?