Kureev/react-native-navbar

Cannot read property 'displayName' of undefined

Open

#165 创建于 2016年5月9日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)JavaScript (1,900 star) (319 fork)batch import
bughelp wanted

描述

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?

贡献者指南

Cannot read property 'displayName' of undefined · Kureev/react-native-navbar#165 | Good First Issue