Skip to content

getstorybook cannot determine the app name for RN projects #1277

@shilman

Description

@shilman

why

getstorybook needs the project name to properly configure the RN entry files, but it fails silently:

https://github.com/storybooks/storybook/blob/67d6af3670e93364590a9a9423442cc6ebc0eb12/lib/cli/generators/REACT_NATIVE/index.js#L13

When it fails, storybook does not properly inject itself into the AppRegistry, and when the user runs the app, no stories appear on the device.

what

  • improve the heuristic for determining project name
  • give a big warning if it cannot determine project name so that it is less confusing and the user can set it by hand

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions