<tfoot id='pDUi9'></tfoot>

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

      <legend id='pDUi9'><style id='pDUi9'><dir id='pDUi9'><q id='pDUi9'></q></dir></style></legend>
        • <bdo id='pDUi9'></bdo><ul id='pDUi9'></ul>
      1. <small id='pDUi9'></small><noframes id='pDUi9'>

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

        时间:2023-11-29
          <bdo id='LpbZA'></bdo><ul id='LpbZA'></ul>
            <tbody id='LpbZA'></tbody>

          1. <small id='LpbZA'></small><noframes id='LpbZA'>

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

                <tfoot id='LpbZA'></tfoot>
                  <legend id='LpbZA'><style id='LpbZA'><dir id='LpbZA'><q id='LpbZA'></q></dir></style></legend>
                  本文介绍了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') 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在屏幕之间发送状态反应原生 下一篇:如何将图像 URI 转换为字节博览会

                  相关文章

                  <legend id='WlmkS'><style id='WlmkS'><dir id='WlmkS'><q id='WlmkS'></q></dir></style></legend>

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

                        <bdo id='WlmkS'></bdo><ul id='WlmkS'></ul>

                      <small id='WlmkS'></small><noframes id='WlmkS'>