pedronauck / docz-plugin-react-native

Plugin that allow you to use React Native with docz
21 stars 5 forks source link

Example not working #1

Open franklinjavier opened 6 years ago

franklinjavier commented 6 years ago

Trying to run example folder, following the instructions from readme, but got this error

image

fhelwanger commented 6 years ago

react-native-web@^0.8 isn't compatible with react-native@^16.5, but it's already fixed: necolas/react-native-web@506dba9

That fix was released on version 0.9.0 of react-native-web: https://github.com/necolas/react-native-web/releases/tag/0.9.0

While docz-plugin-react-native isn't updated, you can put this on your package.json and run yarn install to force the correct version:

  "resolutions": {
    "docz-plugin-react-native/react-native-web": "^0.9.0"
  }
yo7 commented 5 years ago

I have the following error when I go to each components page.

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `o`.
zeckdude commented 5 years ago

@pedronauck I'm experiencing the same issue as @yo7.

Steps taken:

  1. Clone repo
  2. cd to example folder
  3. yarn install
  4. yarn dev
  5. Click on Alert or Button component

screencapture-localhost-3000-src-components-button-2018-10-13-23_31_38

Btw, your generated docs are very well designed. Such a pleasure to look at it. I love the attention to detail!