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

Documentation failed when used libraries #303

Closed
titojuan opened this issue Dec 13, 2021 · 2 comments
Closed

Documentation failed when used libraries #303

titojuan opened this issue Dec 13, 2021 · 2 comments

Comments

@titojuan
Copy link

Describe the bug

When I use a library that I have to use for component development in React Native, the documentation cannot initialize but it can be viewed in the emulators

For example:

import {SvgXml} from 'react-native-svg';

const getXml = () => {
        return `
            <svg
              width="48"
              height="48"
              viewBox="0 0 48 48"
              fill="none"
              xmlns="http://www.w3.org/2000/svg"
            >
              <path
                fillRule="evenodd"
                clipRule="evenodd"
                d="M40.5042 17.5318C40.5042 17.5318 38.7776 16.331 35.6235 15.7304C31.4446 14.9349 22.5291 15.0478 18.9569 8.46558C17.1705 5.14018 17.4092 2.46182 17.469 0C17.469 0 19.0729 0.826451 23.4701 1.31211C26.409 1.63589 40.5732 1.52504 40.5042 17.5318Z"
                fill="#91D65C"
              />
              <path
                fillRule="evenodd"
                clipRule="evenodd"
                d="M28.1614 38.252C28.1614 38.252 26.5662 41.5888 22.8672 41.5888C19.1683 41.5888 17.5005 32.8211 28.1614 34.6065V38.252ZM27.4096 29.8391C27.4096 29.8391 15.4228 26.6503 10.3857 33.2619C5.70483 39.409 8.04832 47.0677 16.2191 47.9112C23.7791 48.6917 27.7965 44.0542 27.7965 44.0542L27.9146 43.9521V47.4312H40.6731V28.4084C40.6731 28.4084 40.4835 20.5841 30.4824 18.6281C24.3285 17.4258 13.4805 18.7915 11.5168 19.8129L11.3977 27.4381C11.3977 27.4381 15.7928 25.1515 21.8731 25.2768C24.7901 25.3371 28.0643 25.9378 27.8251 29.7803L27.4096 29.8391Z"
                fill="${isInverse ? '#FFFFFF' : '#E62020'}"
              />
            </svg>
          `;
}

return <SvgXml {...others} xml={getXml()} {...sizeRender} />;

System
System: MacOS Monterey 12.0.1
Corel i5 / 8 GB / 512 GB

Packages
"react": "16.13.1",
"react-native": "0.63.3",
"react-native-web": "^0.14.10",
"react-native-svg": "^12.1.1",
"@react-theming/storybook-addon": "^1.1.1",
"@storybook/addon-a11y": "6.3.11",
"@storybook/addon-docs": "6.3.11",
"@storybook/addon-knobs": "6.3.1",
"@storybook/addon-links": "6.3.11",
"@storybook/addon-postcss": "2.0.0",
"@storybook/addon-storysource": "6.3.11",
"@storybook/addon-viewport": "6.3.11",
"@storybook/addons": "6.3.11",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "6.3.11",
"@storybook/react-native": "5.3.25"

Additional context
These errors also happen with @react-native-picker

@shilman shilman transferred this issue from storybookjs/storybook Dec 13, 2021
@dannyhw
Copy link
Member

dannyhw commented Dec 15, 2021

@titojuan please can you share a reproduction of the issue?

@dannyhw
Copy link
Member

dannyhw commented Dec 24, 2021

Since there is no response I will close for now. Let me know if you wish to re-open.

@dannyhw dannyhw closed this as completed Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants