native icon indicating copy to clipboard operation
native copied to clipboard

[Bug] Native Examples Not Working/Appearing

Open plflanagan opened this issue 3 years ago • 4 comments

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

  • OS: mac, 12.4
  • Node.js version: v18.6.0
  • NPM version: 8.13.2
  • Browser (if applicable): chrome
  • Browser version (if applicable): Version 103.0.5060.134 (Official Build) (x86_64)
  • Device (if applicable): macbook pro

plflanagan avatar Jul 28 '22 20:07 plflanagan

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.

4tee avatar Dec 24 '22 07:12 4tee

same problem here 🤔

marcosmko avatar Feb 09 '23 14:02 marcosmko

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

marcosmko avatar Feb 09 '23 15:02 marcosmko

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

jeromecovington avatar Dec 19 '23 20:12 jeromecovington