React-native-navigation: [V2] onNavigationButtonPressed is not callback

Created on 15 Jun 2018  路  4Comments  路  Source: wix/react-native-navigation

onNavigationButtonPressed is not callback

Navigation.push(this.props.componentId,
            {
                component: {
                    name: component,
                    passProps: {
                    },
                    options: {
                        topBar: {
                            leftButtons: [
                                {
                                    id: 'back',
                                    icon: require('../../resource/images/nav_back.png')
                                }
                            ],
                        },

                    }
                }
            });

export default class BaseView extends Component<Props> {

    onNavigationButtonPressed(buttonId) {
        console.log(buttonId)
    }
}

Environment

  • React Native Navigation version: v2.0.2350
  • React Native version: 0.55.4
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator
馃彋 stale

Most helpful comment

@a289459798 how are you registering your screens? If you are using a HOC for wrapping your screen with a redux Provider this may be related to #3322.

All 4 comments

same symptom

@a289459798 how are you registering your screens? If you are using a HOC for wrapping your screen with a redux Provider this may be related to #3322.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

The issue has been closed for inactivity.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

viper4595 picture viper4595  路  3Comments

swingywc picture swingywc  路  3Comments

kiroukou picture kiroukou  路  3Comments

yedidyak picture yedidyak  路  3Comments

zhanguangao picture zhanguangao  路  3Comments