Kureev/react-native-navbar

Cannot read property 'displayName' of undefined

Ouverte

#165 ouverte le 9 mai 2016

 (4 commentaires) (0 réaction) (0 personne assignée)JavaScript (319 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (1 900 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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?

Guide contributeur