Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

expo typescript app how to correctly type navigation propto avoid. : "t 'navigation' implicitly has an 'any' type"

$
0
0

I use in my expo app react-navigation and in a class component, I want to navigate to another screen ...
I get the props in a function this way :

     private signUp({navigation}): void {         // eslint-disable-next-line no-console         console.log('navigation', navigation);       navigation.navigate('CheckSteps')       }    ... signUp={ () => this.signUp(this.props)} />

But at the level of my signUp function, on the navigation I have a typing error:

Binding element 'navigation' implicitly has an 'any' type

How to remove this error correctly ??


Viewing all articles
Browse latest Browse all 6287

Trending Articles