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

Possiblity to use storybook with expo and ios device #64

Open
PPillau opened this issue Aug 13, 2021 · 1 comment
Open

Possiblity to use storybook with expo and ios device #64

PPillau opened this issue Aug 13, 2021 · 1 comment

Comments

@PPillau
Copy link

PPillau commented Aug 13, 2021

As I understand the native storybook needs an emulator to work / display stories.
Is there any possibility to use an actual ios device (like for example the expo->iOS functionality) to get the storybook to work?

@amalik2
Copy link
Contributor

amalik2 commented Aug 19, 2021

Hey @PPillau , I'm not an expert with iOS or Expo so I can't provide a definitive answer here. However, this should be possible IF its possible to communicate with your real iOS device through terminal commands. Maybe simctl provides this functionality with real devices?

For reference, you can look at how storybook native communicates with an emulator open on your computer:

A controller class sends data to a local express server here:
https://github.com/storybookjs/native/blob/master/packages/controllers/src/controllers/LocalEmulatorController.ts#L75

The express server runs terminal commands using simctl to open deep links:
https://github.com/storybookjs/native/blob/master/packages/dev-middleware/src/handlers/deepLink.ts#L18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants