Skip to content

Commit

Permalink
Add explanation to DO NOT USE .configure() INSIDE A COMPONENT, EVEN…
Browse files Browse the repository at this point in the history
… `App`
  • Loading branch information
SConaway authored Sep 4, 2020
1 parent 3d769ad commit addd6f5
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 addd6f5

Please sign in to comment.