{"id":16700132,"url":"https://github.com/guyzmo/mcve-rnw-sb6","last_synced_at":"2025-03-14T05:25:56.671Z","repository":{"id":137880521,"uuid":"394375016","full_name":"guyzmo/mcve-rnw-sb6","owner":"guyzmo","description":"MCVE for Expo/RNW with SB6","archived":false,"fork":false,"pushed_at":"2021-08-09T17:19:35.000Z","size":738,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T00:29:16.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guyzmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-09T17:04:54.000Z","updated_at":"2021-08-09T17:19:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1b93eff-62a8-4d07-a00c-3724511fabd6","html_url":"https://github.com/guyzmo/mcve-rnw-sb6","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyzmo%2Fmcve-rnw-sb6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyzmo%2Fmcve-rnw-sb6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyzmo%2Fmcve-rnw-sb6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyzmo%2Fmcve-rnw-sb6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guyzmo","download_url":"https://codeload.github.com/guyzmo/mcve-rnw-sb6/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243528649,"owners_count":20305461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T18:09:28.899Z","updated_at":"2025-03-14T05:25:56.646Z","avatar_url":"https://github.com/guyzmo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expo with Storybook 6 running RNW stories\n\nThis MCVE runs storybook 6 with RNW stories, thanks to a hack within the main.ts that replaces all calls to RN by calls to RNW.\n\n## Run the code\n\nTo setup:\n\n```\nyarn\n```\n\nTo launch storybook\n\n```\nyarn storybook\n```\n\nTo run expo\n\n```\nyarn expo\n```\n\n## Issue\n\nWhenever I try to load an external library (like react-native-eva-icons), I get an error such as the following one, featured in this repository:\n\n```\nUnexpected error while loading ./components/Button/Button.stories.tsx: ReferenceError: react is not defined\n```\n\nThe issue is caused by the `import { Button } from \"./Button\"` import in the story, which itself is caused by the\n`import { Icon } from \"react-native-eva-icons\";` import in `Button.tsx`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyzmo%2Fmcve-rnw-sb6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguyzmo%2Fmcve-rnw-sb6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyzmo%2Fmcve-rnw-sb6/lists"}