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

[V2] Android TopBar LeftButton is not rendering as per docs.

Open rajapanidepu opened this issue 8 years ago • 3 comments

Issue Description and Steps to Reproduce / Code Snippets / Screenshots

Text or Custom Component doesnot get rendered as LeftButton in TopBar.

Setup 1: Make following change in Playground/. You can add left button first and then right button. screen shot 2018-11-04 at 3 36 08 pm

Observation: Only right button is rendered, not left button.

Setup 2: Adding a custom component to TopBar left button.

screen shot 2018-11-04 at 3 49 57 pm

Observation: Only right button gets rendered.

TopBarLeftButton:

const React = require('react');
const { Component } = require('react');
const {
  StyleSheet,
  View,
  Text
} = require('react-native');

class TopBarBackground extends Component {

  constructor(props) {
    super(props);
  }

  render() {
    return (
      <View style={styles.container}>
        <Text>hello</Text>
      </View>
    );
  }
}

module.exports = TopBarBackground;

const styles = StyleSheet.create({
  container: {
    flex: 1,
    flexDirection: 'row',
    backgroundColor: 'red',
    flexWrap: 'wrap'
});

Environment

  • React Native Navigation version: 2.0.0
  • React Native version: 0.51.1
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Pixel 2 API 28

rajapanidepu avatar Nov 04 '18 23:11 rajapanidepu

Textual left button is also not supported on Android. Only icon buttons are supported as left buttons on Android.

https://github.com/wix/react-native-navigation/issues/3982#issuecomment-422455420

narodejesus avatar Nov 06 '18 03:11 narodejesus

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 Dec 06 '18 04:12 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Dec 13 '18 04:12 stale[bot]