Skip to content

Commit

Permalink
Merge pull request #1630 from SConaway/patch-1
Browse files Browse the repository at this point in the history
Add explanation to DO NOT USE `.configure()` INSIDE A COMPONENT, EVEN in app
  • Loading branch information
Dallas62 authored Sep 14, 2020
2 parents c1880e7 + addd6f5 commit 20be169
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ public class MainApplication extends Application implements ReactApplication {
## Usage

**DO NOT USE `.configure()` INSIDE A COMPONENT, EVEN `App`**
> If you do, notification handlers will not fire, because they are not loaded. Instead, use `.configure()` in the app's first file, usually `index.js`.

```javascript
import PushNotificationIOS from "@react-native-community/push-notification-ios";
Expand Down

0 comments on commit 20be169

Please sign in to comment.