Skip to content

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

Description

@mySteamIDisLiKang

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

import PropTypes from 'prop-types';

麻烦更新一下,谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions