From 30681e2152eb3c91c87c713556a91659b2ff620b Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Sat, 4 Jul 2020 13:40:15 +0900 Subject: [PATCH] Update README.md Make linking instructions for React Native 0.59 or older to be expandable to avoid confusion --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3e1a3ab01..67bca2070 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,11 @@ React Native Push Notification API for iOS. yarn add @react-native-community/push-notification-ios ``` -### Link +## Link -There are a couple of cases for linking. Choose the appropriate one. -- `react-native >= 0.60` + +### React Native v0.60+ The package is [automatically linked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) when building the app. All you need to do is: @@ -27,7 +27,12 @@ There are a couple of cases for linking. Choose the appropriate one. npx pod-install ``` -- `react-native <= 0.59` +For android, the package will be linked automatically on build. + +
+ For React Native version 0.59 or older + +### React Native <= v0.59 ```bash react-native link @react-native-community/push-notification-ios @@ -44,6 +49,8 @@ react-native link @react-native-community/push-notification-ios - manual linking If you don't want to use the methods above, you can always [link the library manually](./docs/manual-linking.md). + +
### Add Capabilities : Background Mode - Remote Notifications