This repository was archived by the owner on Jan 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ In your `AndroidManifest.xml`
77
77
android : value =" YOUR NOTIFICATION CHANNEL DESCRIPTION" />
78
78
<!-- Change the resource name to your App's accent color - or any other color you want -->
79
79
<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 -- >
81
81
82
82
<!-- < Only if you're using GCM or localNotificationSchedule() > -->
83
83
<receiver
@@ -122,20 +122,21 @@ In your `AndroidManifest.xml`
122
122
123
123
```
124
124
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
+
125
133
In ` android/settings.gradle `
126
134
``` gradle
127
135
...
128
136
include ':react-native-push-notification'
129
137
project(':react-native-push-notification').projectDir = file('../node_modules/react-native-push-notification/android')
130
138
```
131
139
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
-
139
140
Manually register module in ` MainApplication.java ` (if you did not use ` react-native link ` ):
140
141
141
142
``` java
You can’t perform that action at this time.
0 commit comments