Kureev/react-native-navbar

Cannot read property 'displayName' of undefined

Aberta

#165 aberto em 9 de mai. de 2016

 (4 comentários) (0 reação) (0 responsável)JavaScript (319 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (1.900 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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?

Guia do colaborador