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

Setting style for Scenes, title, ... #2249

Closed
Stophface opened this issue Aug 16, 2017 · 3 comments
Closed

Setting style for Scenes, title, ... #2249

Stophface opened this issue Aug 16, 2017 · 3 comments

Comments

@Stophface
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux ^4.0.0-beta.16
  • react-native ^0.46.1

Expected behaviour

I want to set the backgroundColor of the title in a Scene. I cannot find any props in the docs of to set the backgroundColor of the title (or fontSize, ...)

Actual behaviour

Its staying white (on Android).

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

export default class Router extends Component {
  render() {
    return (
      <Router>
        <Scene key = "root">
          <Scene 
            key = "index"
            component = {NumberOne}
            title = "Color Me!"
            initial />
          <Scene 
            key = "webgis"
            component = {NumberTwo} />
        </Scene>
      </Router>
    )
  }
};
@aksonov
Copy link
Owner

aksonov commented Aug 16, 2017

Try titleStyle. Added it to docs.

@Stophface
Copy link
Author

@aksonov thanks!
Is there a way to wrap <Router> <Scene .../>...</Router> in a <Scrollview>? When I do it, everything disappears.

@aksonov
Copy link
Owner

aksonov commented Aug 16, 2017

I don't know, maybe add flex:1 to style, but anyway it seems not good idea to include Router into ScrollView

@aksonov aksonov closed this as completed Aug 16, 2017
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