Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

cb is not a function #27

Open
paranat9221 opened this issue Dec 1, 2017 · 0 comments
Open

cb is not a function #27

paranat9221 opened this issue Dec 1, 2017 · 0 comments

Comments

@paranat9221
Copy link

I try to use

        this.props.navigation.addListener('focus', console.log('focus'));
        this.props.navigation.addListener('blur', console.log('blur'));
        this.props.navigation.addListener('change', console.log('change'));

but when I run, will show this error

TypeError: cb is not function
This error is located at:
in
enhancedNavigator(NavigationContainer) (at ScreenView.js:31)

How can I fix that

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

No branches or pull requests

1 participant