Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Support RN 0.40, change header import path #25

Merged
merged 2 commits into from
Jan 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ __This project currently only supports iOS 9+__

![](http://i.imgur.com/holmBPD.png)

## Supported React Native Versions

| React Native version(s) | Supporting react-native-quick-actions version(s) |
|-------------------------|--------------------------------------------------|
| < v0.40 | v0.1.5 |
| v0.40+ | v0.2.0+ |

## Installing

First cd into your project's directory and grab the latest version of this code:
Expand Down
2 changes: 1 addition & 1 deletion RNQuickAction/RNQuickAction/RNQuickActionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2015 react-native. All rights reserved.
//

#import "RCTBridgeModule.h"
#import <React/RCTBridgeModule.h>

@interface RNQuickActionManager : NSObject <RCTBridgeModule>
+(void) onQuickActionPress:(UIApplicationShortcutItem *) shortcutItem completionHandler:(void (^)(BOOL succeeded)) completionHandler;
Expand Down
8 changes: 4 additions & 4 deletions RNQuickAction/RNQuickAction/RNQuickActionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
// Copyright © 2015 react-native. All rights reserved.
//

#import "RCTBridge.h"
#import "RCTConvert.h"
#import "RCTEventDispatcher.h"
#import <React/RCTBridge.h>
#import <React/RCTConvert.h>
#import <React/RCTEventDispatcher.h>
#import <React/RCTUtils.h>
#import "RNQuickActionManager.h"
#import "RCTUtils.h"

NSString *const RCTShortcutItemClicked = @"ShortcutItemClicked";

Expand Down