V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jy04149886
V2EX  ›  程序员

react-native 新手求助

  •  
  •   jy04149886 · 2018-12-25 19:51:22 +08:00 · 935 次点击
    这是一个创建于 1920 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近接手 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,
    }
    ......
    }
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   981 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 22:08 · PVG 06:08 · LAX 15:08 · JFK 18:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.