Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![npm version](https://badge.fury.io/js/react-native-dialog.svg)](https://badge.fury.io/js/react-native-dialog)

A flexible pure JavaScript React-Native dialog that follows closely the native UI guidelines.
A flexible pure JavaScript React-Native dialog that follows closely the native UI guidelines.

## Features

Expand Down Expand Up @@ -36,6 +36,28 @@ $ npm install react-native-dialog
$ yarn add react-native-dialog
```

### Android

Create `colors.xml` in `android/app/src/main/res/values`:

```bash
touch android/app/src/main/res/values/colors.xml
```

```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="dialog_surface_light">#FFFFFF</color>
<color name="dialog_surface_dark">#212121</color>
<color name="dialog_primary_text_light">#212121</color>
<color name="dialog_primary_text_dark">#FAFAFA</color>
<color name="dialog_secondary_text_light">#727272</color>
<color name="dialog_secondary_text_dark">#C7C7C7</color>
<color name="dialog_hint_text_light">#BF727272</color>
<color name="dialog_hint_text_dark">#BFC7C7C7</color>
</resources>
```

## Usage

React-native-dialog exposes a set of components that can be used to build the UI of the dialog:
Expand Down
Loading