Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hideTabBar animated #3080

Closed
Matheusqf opened this issue Jun 13, 2018 · 1 comment
Closed

How to hideTabBar animated #3080

Matheusqf opened this issue Jun 13, 2018 · 1 comment

Comments

@Matheusqf
Copy link

Matheusqf commented Jun 13, 2018

I would like to see the tabBar hide/show with animation, instead of just render or not the component.

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.28
  • react-native v0.55.17

Steps to reproduce

  1. HomeView.js:
import { Actions } from "react-native-router-flux";

constructor(props) {
    super(props);
    this.state = { hideTabBar: false };
  }

  toggleTabBar = () => {
    this.setState({ hideTabBar: !this.state.hideTabBar }, () =>
      Actions.refresh({ hideTabBar: this.state.hideTabBar })
    );
  };

 render() {
    return (
      <MainLayout
        component="home"
        content={
          <Content>
            <TouchableWithoutFeedback onPressIn={this.toggleTabBar}>
   ...
            </TouchableWithoutFeedback>
          </Content>
         }/>
       );
    }
  1. Main.js
<RouterWithRedux getSceneStyle={() => ({ backgroundColor: "transparent" })}>
  <Scene key="root">
    <Scene
      key="tabbar"
      tabs={true}
      tabBarPosition="bottom"
      tabBarComponent={FooterTabs}
    >
      <Scene key="home" title="Cartão" component={HomeView} hideNavBar={true} />
      <Scene
        key="info"
        title="Informações"
        component={InfoView}
        hideNavBar={true}
      />
    </Scene>
  </Scene>
</RouterWithRedux>;
@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

It is not supported at this moment

@aksonov aksonov closed this as completed Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants