Kureev/react-native-navbar

Cannot read property 'displayName' of undefined

开放

#165 创建于 2016年5月9日

 (4 条评论) (0 个反应) (0 位负责人)JavaScript (319 个派生)batch import
bughelp wanted

仓库指标

星标
 (1,900 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

I'm getting this error when I try to run the vanilla example in my own app

import NavigationBar from 'react-native-navbar'

...

render () {
    const rightButtonConfig = {
      title: 'Next',
      handler: () => {
        alert('hello!')
      }
    }
    const titleConfig = {
      title: 'Hello, world',
    }
    return (
      <View style={styles.overlayContainer}>
        <NavigationBar title={titleConfig} rightButton={rightButtonConfig} />
        <View style={styles.topBar}>
          <Text>Dashboard Screen</Text>
        </View>
      </View>
    )
  }

image

Has anyone seen this before?

贡献者指南