• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jy04149886
V2EX  ›  程序员

react-native 新手求助

  •  
  •   jy04149886 · Dec 25, 2018 · 1582 views
    This topic created in 2724 days ago, the information mentioned may be changed or developed.
    最近接手 rn 项目,遇到不解的问题,intellj 不到错,但是 Android 模拟器报错:
    undefined is not an object(evaluating 'MediaPickerView.Type')
    代码:
    export default class MediaPickerView extends PureComponent {
    static Type = {
    Image: 1,
    Video: 2,
    }

    static propTypes = {
    navigation: PropTypes.object.isRequired,
    onLoadSuccess: PropTypes.func,
    multiSelect: PropTypes.bool,
    mediaType: PropTypes.number,
    }

    static defaultProps = {
    multiSelect: true,
    mediaType: MediaPickerView.Type.Image,
    }
    ......
    }
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1127 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:01 · PVG 02:01 · LAX 11:01 · JFK 14:01
    ♥ Do have faith in what you're doing.