Skip to content

Commit

Permalink
Added backgroundColor (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPear42 authored and vonovak committed Sep 27, 2019
1 parent 3345361 commit d5b3731
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions DialogAndroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type OptionsCommon = {|
positiveColor?: ColorValue,
negativeColor?: ColorValue,
neutralColor?: ColorValue,
backgroundColor?: ColorValue,
cancelable?: boolean,
linkColor?: ColorValue, // applies if contentIsHtml is true, and there are <a> elements in content string
forceStacking?: boolean,
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ Shows a progress dialog. By default no buttons are shown, and hardware back butt
> neutralText?: string,
> positiveColor?: ColorValue,
> positiveText?: string, // default "OK"
> backgroundColor?: ColorValue,
> title?: string,
> titleColor?: ColorValue,
> }
Expand All @@ -368,6 +369,7 @@ Shows a progress dialog. By default no buttons are shown, and hardware back butt
| neutralText | `string` | | | Shows button in far left with this string as label. If falsy, button is not shown. |
| positiveColor | [`ColorValue`](https://facebook.github.io/react-native/docs/colors.html) | | | |
| positiveText | `string` | | | If falsy, button is not shown. |
| backgroundColor | [`ColorValue`](https://facebook.github.io/react-native/docs/colors.html) | | | |
| title | `string` | | | Title of dialog |
| titleColor | [`ColorValue`](https://facebook.github.io/react-native/docs/colors.html) | | | Color of title |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ private MaterialDialog.Builder applyOptions(MaterialDialog.Builder builder, Read
case "contentColor":
builder.contentColor(options.getInt("contentColor"));
break;
case "backgroundColor":
builder.backgroundColor(options.getInt("backgroundColor"));
break;
case "items":
ReadableArray arr = options.getArray("items");
String[] items = new String[arr.size()];
Expand Down

0 comments on commit d5b3731

Please sign in to comment.