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

react-native 新手求助

  •  
  •   jy04149886 · Dec 25, 2018 · 1587 views
    This topic created in 2726 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   ·   3086 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 08:00 · PVG 16:00 · LAX 01:00 · JFK 04:00
    ♥ Do have faith in what you're doing.