react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[v3] Custom right button added using mergeOptions crashes in iOS

Open peresbri opened this issue 7 years ago • 3 comments

Issue Description

I want to dynamically add a custom right icon to the top bar. As per the documentation, I used mergeOptions. Android works well. But the app crashes on iOS.

Steps to Reproduce / Code Snippets / Screenshots

Navigation.mergeOptions(componentId, {
          topBar: {
            rightButtons: [
              {
                component: {
                  name: "TopBarButton",
                  passProps: {
                    label: "test",
                    iconImage: iconUrl(TEST_URL),
                    onPress: () => {
                      console.log("Custom tap button clicked");
                    }
                  }
                },
                id: "CustomTopBarButton",
                enabled: true,
              }
            ]
          }
        });

Environment

  • React Native Navigation version: 3.2.0
  • React Native version: 0.60.5
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): iPhone 11, iPhone X, (12 - 13)

peresbri avatar Oct 20 '19 22:10 peresbri

Same here, even without custom component, it crash

NISUSIN avatar Oct 24 '19 21:10 NISUSIN

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 Detox and report back. Thank you for your contributions.

stale[bot] avatar Nov 23 '19 22:11 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Dec 01 '19 02:12 stale[bot]