Git Product home page Git Product logo

Comments (9)

grabbou avatar grabbou commented on April 20, 2024 2

It's been just merged for the header -> a606073.

TabBar has it already -> see tabBarOptions.style https://reactnavigation.org/docs/navigators/tab

You can pass any style you want instead of using arbitrary properties which should make it easier to style and remember.

from react-navigation.

housseindjirdeh avatar housseindjirdeh commented on April 20, 2024 1

Forgive me if I'm doing something wrong, but since it's merged in for header can't we just add it to our Stack Navigation options?

const MyApp = StackNavigator({
  Login: {
    screen: LoginScreen,
  },
  Main: {
    screen: MainScreen,
    navigationOptions: {
      title: 'Title',
      header: {
        style: {
          backgroundColor: 'blue',
        },
      },
   },
  },
});

That doesn't seem to work for some reason 🤔

from react-navigation.

satya164 avatar satya164 commented on April 20, 2024

We still need to support a tintColor for header to which styles the text and icon colors

from react-navigation.

knowbody avatar knowbody commented on April 20, 2024

closing in favour of #36

from react-navigation.

satya164 avatar satya164 commented on April 20, 2024

@housseindjirdeh are you using from npm or github? I don't think it's published to npm yet

from react-navigation.

housseindjirdeh avatar housseindjirdeh commented on April 20, 2024

@satya164 ah was just thinking that might be it, thanks so much mate appreciate it

from react-navigation.

nonameolsson avatar nonameolsson commented on April 20, 2024

I am also having problems to get color to work. Isn't this feature published to npm?

from react-navigation.

housseindjirdeh avatar housseindjirdeh commented on April 20, 2024

@nonameolsson Yep it's not published to npm yet, but you can get it from here instead (npm install --save https://github.com/react-community/react-navigation.git)

from react-navigation.

nonameolsson avatar nonameolsson commented on April 20, 2024

@housseindjirdeh Thanks! I the documentation at https://reactnavigation.org up-to-date? Or does it match the version published to NPM?

from react-navigation.

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.