this.props.onPress is not a function

This is not a valid function reference

onPress={() => navigate('AboutUs'), { name: 'About Us' }}

seems like you mixed up { name: 'About Us' } inside the function ref instead of as a prop to Button


I had a similar issue with the same error: "this.props.onPress is not a function" The mistake I made was using:

onPress={this.props.incrementCount()}

where the correct syntax is:

onPress={ () => this.props.incrementCount()}

the latter returns the results of the function.