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

你好,关于react在版本更新为16之后,PropTypes被转移到单独的包的问题 #7

Open
mySteamIDisLiKang opened this issue Nov 6, 2017 · 0 comments

Comments

@mySteamIDisLiKang
Copy link

mySteamIDisLiKang commented Nov 6, 2017

原本的PropTypes从react中引用,更新之后PropTypes 要从'prop-types'中引入。
import React, {
// PropTypes,
Component,
} from 'react'
import {
StyleSheet,
View,
} from 'react-native'

import PropTypes from 'prop-types';

麻烦更新一下,谢谢

@mySteamIDisLiKang mySteamIDisLiKang changed the title 你好,关于react在版本更新为16之后,props 你好,关于react在版本更新为16之后,PropTypes被转移到单独的包的问题 Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant