Skip to content

Commit 0f9cb22

Browse files
committed
Merge branch 'master' into phongcao/mixer-improvements
2 parents 9ba5ff5 + 1ddaabc commit 0f9cb22

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

docs/ios-installation.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,17 @@ In addition to the standard React Native requirements, you will also need the fo
1414

1515
## Install react-native-azurenotificationhub
1616

17-
```
18-
npm install react-native-azurenotificationhub
19-
```
17+
Install the library using either **Yarn**:
18+
19+
yarn add react-native-azurenotificationhub
20+
21+
or npm:
22+
23+
npm install --save react-native-azurenotificationhub
24+
25+
Add the following line to your `ios/Podfile` file and run **pod install**
26+
27+
pod 'RNAzureNotificationHub', :podspec => '../node_modules/react-native-azurenotificationhub/RNAzureNotificationHub.podspec'
2028

2129
## Create a Notification Hub
2230

ios/RCTAzureNotificationHubManager/RCTAzureNotificationHandler.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#import "RCTAzureNotificationHub.h"
1111
#import "RCTAzureNotificationHandler.h"
1212

13+
extern RCTPromiseResolveBlock requestPermissionsResolveBlock;
14+
1315
@implementation RCTAzureNotificationHandler
1416
{
1517
@private
@@ -107,6 +109,7 @@ - (void)userNotificationSettingsRegistered:(nonnull NSNotification *)notificatio
107109
};
108110

109111
resolve(notificationTypes);
112+
requestPermissionsResolveBlock = nil;
110113
}
111114

112115
@end

ios/RCTAzureNotificationHubManager/RCTAzureNotificationHubManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
RCT_EXTERN NSString *const RCTErrorUnspecified;
2424

2525
static RCTAzureNotificationHandler *notificationHandler;
26-
static RCTPromiseResolveBlock requestPermissionsResolveBlock;
27-
static RCTPromiseRejectBlock requestPermissionsRejectBlock;
26+
RCTPromiseResolveBlock requestPermissionsResolveBlock;
27+
RCTPromiseRejectBlock requestPermissionsRejectBlock;
2828

2929
@implementation RCTAzureNotificationHubManager
3030
{

0 commit comments

Comments
 (0)