Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What properties does navigationOptions take in react-native?

There's mention of the property navigationOptions in this page here:

https://facebook.github.io/react-native/docs/navigation.html

I can't seem to find the full list of properties that navigationOptions is supposed to take? Where do I get this information?

like image 333
John Avatar asked Sep 24 '17 16:09

John


People also ask

What is navigationOptions?

navigationOptions - The default or previous options that would be used if new values are not provided.

What is stack screen in react native?

Stack Navigator provides a way for your app to transition between screens where each new screen is placed on top of a stack. By default the stack navigator is configured to have the familiar iOS and Android look & feel: new screens slide in from the right on iOS, use OS default animation on Android.


1 Answers

Here are some options:

  1. title

  2. header

  3. headerTitle

  4. headerBackTitle

  5. headerTruncatedBackTitle

  6. headerRight

  7. headerLeft

  8. headerStyle

  9. headerTitleStyle

  10. headerBackTitleStyle

  11. headerTintColor

  12. headerPressColorAndroid

  13. gesturesEnabled

You can find more details all options and props in the following doc:

This link is no longer in use.

https://reactnavigation.org/docs/navigators/stack#Screen-Navigation-Options

Instead of that You can use Below link for the answer.

navigationoptions-used-by-stacknavigator

Hope it helps

like image 96
soutot Avatar answered Sep 26 '22 02:09

soutot