Kureev/react-native-navbar

Cannot read property 'displayName' of undefined

Open

#165 geöffnet am 9. Mai 2016

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.900 Stars) (319 Forks)batch import
bughelp wanted

Beschreibung

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?

Contributor Guide