Kureev / Kureev/react-native-navbar

Cannot read property 'displayName' of undefined

Open
#165 4 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
1.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

I'm getting this error when I try to run the vanilla example in my own app

``` jsx
import NavigationBar from 'react-native-navbar'

...

render () {
const rightButtonConfig = {
title: 'Next',
handler: () => {
alert('hello!')
}
}
const titleConfig = {
title: 'Hello, world',
}
return (



Dashboard Screen


)
}
```

![image](https://cloud.githubusercontent.com/assets/696842/15101410/64f431e8-1544-11e6-8778-c0c3004c8e7d.png)

Has anyone seen this before?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the error from the vanilla example using the shown NavigationBar import and render configuration. Trace where the undefined value is accessed during rendering, then verify the issue's cause and confirm that the example runs without the displayName error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.