Kureev/react-native-navbar

Cannot read property 'displayName' of undefined

オープン

#165 opened on 2016/05/09

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (319 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (1,900 個のスター)
PR merge metrics
 (30d に merged 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?

コントリビューターガイド