GithubHelp home page GithubHelp logo

Comments (5)

Kureev avatar Kureev commented on September 18, 2024

Honestly, I haven't planned this, because I think that example with custom elements is enough to understand the idea. customTitle works totally the same as customPrev or customNext. All custom elements has a priority against usual ones. Simply put, if you specify title prop and customTitle prop, then title will be ignored.

from react-native-navbar.

chirag04 avatar chirag04 commented on September 18, 2024

@Kureev
Sure no problem. I almost got it working and its amazing. Thanks for this component.

The only problem i have though now is how to handle passProps.

In the component i handle event like this:

this.props.navigator.push({
      component: Details,
      passProps: {details: details},
});

Can you suggest ideas on how to handle this?

from react-native-navbar.

chirag04 avatar chirag04 commented on September 18, 2024

Ok nivermind. I figured how react-native is having it in its source code.

In the renderScene i need you use {...route.passProps}

Eg:

return (
      <View style={styles.navigator}>
        {navBar}
        <Component {...route.passProps} navigator={navigator} route={route} />
      </View>

from react-native-navbar.

bakso avatar bakso commented on September 18, 2024

What's the meaning of ...route

from react-native-navbar.

chirag04 avatar chirag04 commented on September 18, 2024

https://facebook.github.io/react/docs/jsx-spread.html

... is the spread operator

from react-native-navbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.