<bdo id='3D4bm'></bdo><ul id='3D4bm'></ul>

<tfoot id='3D4bm'></tfoot>
      <legend id='3D4bm'><style id='3D4bm'><dir id='3D4bm'><q id='3D4bm'></q></dir></style></legend>
    1. <small id='3D4bm'></small><noframes id='3D4bm'>

    2. <i id='3D4bm'><tr id='3D4bm'><dt id='3D4bm'><q id='3D4bm'><span id='3D4bm'><b id='3D4bm'><form id='3D4bm'><ins id='3D4bm'></ins><ul id='3D4bm'></ul><sub id='3D4bm'></sub></form><legend id='3D4bm'></legend><bdo id='3D4bm'><pre id='3D4bm'><center id='3D4bm'></center></pre></bdo></b><th id='3D4bm'></th></span></q></dt></tr></i><div id='3D4bm'><tfoot id='3D4bm'></tfoot><dl id='3D4bm'><fieldset id='3D4bm'></fieldset></dl></div>

        Undefined is not an object (evalating 'React.PropTypes.N

        Undefined is not an object (evaluating #39;React.PropTypes.Number#39;) error(Undefined is not an object (evalating React.PropTypes.Number) 错误)
            • <bdo id='lIraf'></bdo><ul id='lIraf'></ul>
              <legend id='lIraf'><style id='lIraf'><dir id='lIraf'><q id='lIraf'></q></dir></style></legend>

                <tbody id='lIraf'></tbody>
              <tfoot id='lIraf'></tfoot>
            • <small id='lIraf'></small><noframes id='lIraf'>

              • <i id='lIraf'><tr id='lIraf'><dt id='lIraf'><q id='lIraf'><span id='lIraf'><b id='lIraf'><form id='lIraf'><ins id='lIraf'></ins><ul id='lIraf'></ul><sub id='lIraf'></sub></form><legend id='lIraf'></legend><bdo id='lIraf'><pre id='lIraf'><center id='lIraf'></center></pre></bdo></b><th id='lIraf'></th></span></q></dt></tr></i><div id='lIraf'><tfoot id='lIraf'></tfoot><dl id='lIraf'><fieldset id='lIraf'></fieldset></dl></div>

                • 本文介绍了Undefined is not an object (evalating 'React.PropTypes.Number') 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  刚刚从 expo 21.0.0 更新到 22.0.0 我收到了这个错误:

                  Just updated from expo 21.0.0 to 22.0.0 and I am getting this error:

                  这是我的 package.json:

                  this is my package.json:

                  {
                    "name": "APP",
                    "version": "0.1.0",
                    "private": true,
                    "devDependencies": {
                      "react-native-scripts": "1.5.0",
                      "jest-expo": "^22.0.0",
                      "react-test-renderer": "16.0.0-alpha.12"
                    },
                    "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
                    "scripts": {
                      "start": "react-native-scripts start",
                      "eject": "react-native-scripts eject",
                      "android": "react-native-scripts android",
                      "ios": "react-native-scripts ios",
                      "test": "node node_modules/jest/bin/jest.js --watch"
                    },
                    "jest": {
                      "preset": "jest-expo"
                    },
                    "dependencies": {
                      "expo": "^22.0.0",
                      "react": "16.0.0-beta.5",
                      "react-native": "https://github.com/expo/react-native/archive/sdk-22.0.1.tar.gz",
                      "react-native-autocomplete-input": "3.3.1",
                      "react-native-check-box": "2.0.0",
                      "react-native-easy-toast": "1.0.9",
                      "react-native-elements": "0.13.0",
                      "react-native-global-props": "1.1.1",
                      "react-native-htmlview": "0.12.1",
                      "react-native-modal-dropdown": "0.5.0",
                      "react-native-modalbox": "1.4.2",
                      "react-native-parallax-scroll-view": "0.20.1",
                      "react-native-tag-input": "0.0.14",
                      "react-native-vector-icons": "4.2.0",
                      "react-navigation": "^1.0.0-beta.27"
                    },
                    "rnpm": {
                      "assets": [
                        "./src/assets/fonts/"
                      ]
                    }
                  }
                  

                  很难弄清楚为什么更新会搞砸应用.很可能它是一个 proptypes 更新的东西,我目前没有在应用程序中使用任何 proptypes.有任何想法吗?

                  Having hard time figuring out why updating messed up the app. Most likely it is a proptypes update thing, I am currently not using any proptypes in the app. Any ideas?

                  推荐答案

                  PropTypes 已从 react 中移除,因此您需要安装 prop-types 并从中导入:

                  PropTypes is removed from react so you need to install prop-types and import it from that:

                  安装prop-types:

                  npm install prop-types --save
                  

                  从 prop-type 导入 PropTypes 而不是从 react 导入 PropTypes:

                  Import PropTypes from prop-type instead of import PropTypes from react:

                  import PropTypes from 'prop-types';
                  

                  这篇关于Undefined is not an object (evalating 'React.PropTypes.Number') 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  #39;ActionSheetIOS#39; is not exported from #39;react-native-web/dist/index#39;(ActionSheetIOS 不是从react-native-web/dist/index 导出的)
                  React Native - navigation issue quot;undefined is not an object (this.props.navigation.navigate)quot;(React Native - 导航问题“未定义不是对象(this.props.navigation.navigate))
                  Gradient Button to background-color blinks on hover(悬停时背景颜色的渐变按钮闪烁)
                  How to make hovering over active button not use hover effect?(如何使悬停在活动按钮上不使用悬停效果?)
                  html javascript show image hover(html javascript 显示图像悬停)
                  How to get css hover values on click?(如何在点击时获得 css 悬停值?)
                  <legend id='QpgSl'><style id='QpgSl'><dir id='QpgSl'><q id='QpgSl'></q></dir></style></legend>

                    <bdo id='QpgSl'></bdo><ul id='QpgSl'></ul>
                    <i id='QpgSl'><tr id='QpgSl'><dt id='QpgSl'><q id='QpgSl'><span id='QpgSl'><b id='QpgSl'><form id='QpgSl'><ins id='QpgSl'></ins><ul id='QpgSl'></ul><sub id='QpgSl'></sub></form><legend id='QpgSl'></legend><bdo id='QpgSl'><pre id='QpgSl'><center id='QpgSl'></center></pre></bdo></b><th id='QpgSl'></th></span></q></dt></tr></i><div id='QpgSl'><tfoot id='QpgSl'></tfoot><dl id='QpgSl'><fieldset id='QpgSl'></fieldset></dl></div>
                    <tfoot id='QpgSl'></tfoot>
                      • <small id='QpgSl'></small><noframes id='QpgSl'>

                          <tbody id='QpgSl'></tbody>