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

Set buttons right with react component.

Open igor-martucelli opened this issue 8 years ago • 1 comments

Issue Description

I need to use the rightButtons property but as a react component, since this button change accordingly to the click event. I've tried doing it, but they did not appear on the navigation bar. Can anybody help me on this?

Steps to Reproduce / Code Snippets / Screenshots

Import and register. screenshot from 2018-03-02 11-05-06

Use mode. screenshot from 2018-03-02 11-05-25


Environment

  • React Native Navigation version: v2
  • React Native version: 0.54
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Device and emulator API 25

igor-martucelli avatar Mar 02 '18 14:03 igor-martucelli

Sorry guys. To create a button, it should follow a certain pattern, for example, my component was not recognized because it was covered by the View tag, when I left just covered by the TouchableOpacity tag and with the Image tag inside, it worked perfectly, as in the example with function variable.

igor-martucelli avatar Mar 05 '18 17:03 igor-martucelli