Skip to content

Add paddingTop to android ToolBar.#2266

Merged
guyca merged 3 commits into
wix:masterfrom
chaitanya-bhagavan:navBarTopPadding
Dec 15, 2017
Merged

Add paddingTop to android ToolBar.#2266
guyca merged 3 commits into
wix:masterfrom
chaitanya-bhagavan:navBarTopPadding

Conversation

@chaitanya-bhagavan
Copy link
Copy Markdown
Contributor

On Android to draw under the StatusBar we have to set translucent=true on StatusBar. This will remove paddingBottom from the StatusBar and the ToolBar will move up. With this fix, we can add a top padding to the navBar on Android.

@ywongweb
Copy link
Copy Markdown
Contributor

Works great! Thanks!

@chaitanya-bhagavan
Copy link
Copy Markdown
Contributor Author

@guyca Can you take a look at this PR and see whether this can be merged?

@guyca guyca merged commit 5a2bc27 into wix:master Dec 15, 2017
robhogan pushed a commit to robhogan/react-native-navigation that referenced this pull request Dec 17, 2017
* Add paddingTop to android ToolBar.

* Update documentation
chilinh added a commit to chilinh/react-native-navigation that referenced this pull request Dec 18, 2017
* r_master:
  fixed toggle tabs bug (wix#2369)
  Add paddingTop to android ToolBar. (wix#2266)
  [Android] TopTabs font family (wix#2342)
  Ensure correct spelling of commandType (wix#2246)
  Add unregisterForPreviewingWithContext (wix#2239)
  Fix rn 0.50 repeated calls to onMeasure. (wix#2261)
  [Android] Support for transparent statusbar with current screen rendered behind it (wix#2274)
  Fix NPE when activity is relaunched on changing font size of the phone (wix#2319)
  Missed comma (wix#2305)
  Add commandType param to props which indicates if a screen is displayed using push or modal
  Find textual buttons in TitleBar by text instead of content description
  Add a toString implementation to StyleParams Color (wix#2313)
garrettm pushed a commit to Ginger-Labs/react-native-navigation that referenced this pull request Dec 19, 2017
* Add paddingTop to android ToolBar.

* Update documentation
garrettm pushed a commit to Ginger-Labs/react-native-navigation that referenced this pull request Dec 19, 2017
* Add paddingTop to android ToolBar.

* Update documentation
thanhzusu pushed a commit to thanhzusu/react-native-navigation that referenced this pull request Dec 21, 2017
* master:
  Now allowing the custom nav bar to take up the whole space on iOS (wix#2306)
  Fix formatting of code block in installation-ios (wix#2356)
  Added optional fixedWidth property to the Android side menu (wix#2380)
  await startApp
  on activity resumed (wix#2370)
  fixed toggle tabs bug (wix#2369)
  Add paddingTop to android ToolBar. (wix#2266)
  [Android] TopTabs font family (wix#2342)
  Ensure correct spelling of commandType (wix#2246)
  Add unregisterForPreviewingWithContext (wix#2239)
  Fix rn 0.50 repeated calls to onMeasure. (wix#2261)
  [Android] Support for transparent statusbar with current screen rendered behind it (wix#2274)
  Fix NPE when activity is relaunched on changing font size of the phone (wix#2319)
  Missed comma (wix#2305)
  Add commandType param to props which indicates if a screen is displayed using push or modal
  Find textual buttons in TitleBar by text instead of content description
  Add a toString implementation to StyleParams Color (wix#2313)
krystofcelba pushed a commit to krystofcelba/react-native-navigation that referenced this pull request Jan 4, 2018
* Add paddingTop to android ToolBar.

* Update documentation
@sapjax
Copy link
Copy Markdown

sapjax commented Jul 12, 2018

@chaitanya0bhagvan
This does not work on google pixel2.

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

Successfully merging this pull request may close these issues.

4 participants