Agontuk / react-native-collapsible-toolbar

Pure JS based collapsible toolbar for react native on Android and iOS
MIT License
56 stars 13 forks source link

Wix Native Navigation #1

Closed odesey closed 7 years ago

odesey commented 7 years ago

Will this package work with Wix react-native-navigation ?

Also can you include a more detailed example? Would be helpful for beginners like myself

Thanks.

Agontuk commented 7 years ago

yes it should work, I'm currently using it with RNN. I'm planning to add an example project as soon as possible.

odesey commented 7 years ago

Awesome, last question.

What am I returning from the renderNavBar={this.renderNavBar} function? this.props.navigator.?

Thanks.

Agontuk commented 7 years ago

You should return a navbar view like:

renderNavBar = () => (
    <View>
        <BackButton />
        <Title />
    </View>
)
odesey commented 7 years ago

Thanks, I have it working now.

How can I adjust the height of the navBar when its collapsed? I am returning the following navBar but the height is too much and I cannot decrease it:

  renderNavBar = () => (
    <View style={{ height: 10 }}>
      <Icon name="ios-arrow-back" size={36} color="#900" style={{ paddingVertical: 0, height: 10 }} />
    </View>
  );

Also, any chance you can post the example code used to generate the GIF's?

Thanks!

Agontuk commented 7 years ago

nav bar height is fixed (56 for android, 44 for ios), you just have to render what you want inside of it. I'll try to push the example tonight.

odesey commented 7 years ago

Solved, removing translucentStatusBar removed the extra space.

Thanks.