Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Native Examples Not Working/Appearing #74

Open
plflanagan opened this issue Jul 28, 2022 · 4 comments
Open

[Bug] Native Examples Not Working/Appearing #74

plflanagan opened this issue Jul 28, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@plflanagan
Copy link

plflanagan commented Jul 28, 2022

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 plflanagan added the bug Something isn't working label Jul 28, 2022
@plflanagan plflanagan changed the title [Bug] [Bug] Native Examples Not Working/Appearing Jul 28, 2022
@4tee
Copy link

4tee commented Dec 24, 2022

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
Copy link

same problem here 🤔

@marcosmko
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants