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

Commit 30b89c8

Browse files
authored
Update README.md
1 parent cac713d commit 30b89c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,13 @@ public class MainApplication extends Application implements ReactApplication {
214214

215215
## Usage
216216

217+
**DO NOT USE `.configure()` INSIDE A COMPONENT, EVEN `App` **
218+
217219
```javascript
218220
import PushNotificationIOS from "@react-native-community/push-notification-ios";
219221
var PushNotification = require("react-native-push-notification");
220222

223+
// Must be outside of any component LifeCycle.
221224
PushNotification.configure({
222225
// (optional) Called when Token is generated (iOS and Android)
223226
onRegister: function (token) {

0 commit comments

Comments
 (0)