Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 359d350

Browse files
author
Mike McCartney
committed
PR #947: Merge remote-tracking branch 'robwalkerco/patch-1'
2 parents 85d593f + 87a5b65 commit 359d350

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ In your `AndroidManifest.xml`
7777
android:value="YOUR NOTIFICATION CHANNEL DESCRIPTION"/>
7878
<!-- Change the resource name to your App's accent color - or any other color you want -->
7979
<meta-data android:name="com.dieam.reactnativepushnotification.notification_color"
80-
android:resource="@android:color/white"/>
80+
android:resource="@color/white"/> <!-- or @android:color/{name} to use a standard color -->
8181

8282
<!-- < Only if you're using GCM or localNotificationSchedule() > -->
8383
<receiver
@@ -122,20 +122,21 @@ In your `AndroidManifest.xml`
122122

123123
```
124124

125+
If not using a built in Android color (`@android:color/{name}`) for the `notification_color` `meta-data` item.
126+
In `android/app/src/main/res/values/colors.xml` (Create the file if it doesn't exist).
127+
```xml
128+
<resources>
129+
<color name="white">#FFF</color>
130+
</resources>
131+
```
132+
125133
In `android/settings.gradle`
126134
```gradle
127135
...
128136
include ':react-native-push-notification'
129137
project(':react-native-push-notification').projectDir = file('../node_modules/react-native-push-notification/android')
130138
```
131139

132-
In `android/app/src/res/values/colors.xml` (Create the file if it doesn't exist).
133-
```xml
134-
<resources>
135-
<color name="white">#FFF</color>
136-
</resources>
137-
```
138-
139140
Manually register module in `MainApplication.java` (if you did not use `react-native link`):
140141

141142
```java

0 commit comments

Comments
 (0)