Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: undefined is not an object (evaluating 'this.props.navigator.navigationContext') #25

Open
ct535101351 opened this issue Feb 24, 2018 · 3 comments

Comments

@ct535101351
Copy link

大大,提示这个错误是怎么回事?谢谢了,求解答!万分感谢

@isszz
Copy link

isszz commented Feb 28, 2018

navigator 相关的代码删除...因为rn已经移除了这个库

@Rananjaya
Copy link

Rananjaya commented Jun 8, 2018

.

  1. comment this lines

this._listeners = [
this.props.navigator.navigationContext.addListener('didfocus', viewAppearCallBack)
]

}

componentWillUnmount () {
    this._listeners && this._listeners.forEach(listener => listener.remove());
}
  1. and remove this line
    export default TimerEnhance(BarcodeTest)

  2. and export like this ---

export default class BarcodeTest extends Component
this work for me

@Kishanjvaghela
Copy link

What about viewAppearCallBack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants