I need to call SearchScreen class method from a React Navigation Header.
The Navigator look like this:
Search: { screen: SearchScreen, path: \'
static navigationOptions = ({navigation}) => { return { headerTitle: () => , headerRight: () => ( save ), headerTintColor:'black', headerStyle: { backgroundColor: '#6200EE' }, } };
this.props.navigation.setParams({ onPressSyncButton: this.updateUserProfile });