Skip to content

Commit

Permalink
Updated Toast Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Jung committed Jul 13, 2018
1 parent d2d3086 commit 1bbe710
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
28 changes: 27 additions & 1 deletion dist/src/basic/TabContainer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/basic/TabContainer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/basic/ToastContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ class ToastContainer extends Component {
opacity: this.state.fadeAnim,
width: "100%",
elevation: 9,
paddingHorizontal: Platform.OS === "ios" ? 20 : 0,
paddingHorizontal: Platform.OS === "ios" ? 0 : 0,
top: this.state.position === "top" ? this.getTop() : undefined,
bottom: this.state.position === "bottom" ? this.getTop() : undefined
};
}
getTop() {
if (Platform.OS === "ios") {
return 30;
return 0;
} else {
return 0;
}
Expand Down

0 comments on commit 1bbe710

Please sign in to comment.