Kureev/react-native-navbar

Cannot read property 'displayName' of undefined

Open

#165 aperta il 9 mag 2016

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (319 fork)batch import
bughelp wanted

Metriche repository

Star
 (1900 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor