Skip to content

Commit

Permalink
added support for ios using react-native0.40+
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqresig committed Mar 26, 2017
1 parent ef4eaea commit 62cb399
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Mac下Android Studio中获取SHA1和MD5请点击[这里][3]
npm install react-native-smart-amap-location --save
```

## Notice

这个版本仅支持react-native 0.40及以上, 如果你想使用旧的版本,使用`npm install [email protected] --save`


## 安装 (iOS)

* 将RCTAMapLocation.xcodeproj作为Library拖进你的Xcode里的project中.
Expand Down
2 changes: 1 addition & 1 deletion ios/RCTAMapLocation/RCTAMapLocation/RCTAMapLocation.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "RCTBridgeModule.h"
#import <React/RCTBridgeModule.h>

@interface RCTAMapLocation : NSObject <RCTBridgeModule>

Expand Down
6 changes: 3 additions & 3 deletions ios/RCTAMapLocation/RCTAMapLocation/RCTAMapLocation.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#define DefaultReGeocodeTimeout 5

#import "RCTAMapLocation.h"
#import "RCTUtils.h"
#import "RCTBridge.h"
#import "RCTEventDispatcher.h"
#import <React/RCTUtils.h>
#import <React/RCTBridge.h>
#import <React/RCTEventDispatcher.h>
#import <AMapFoundationKit/AMapFoundationKit.h>
#import <AMapLocationKit/AMapLocationKit.h>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-smart-amap-location",
"version": "1.1.1",
"version": "1.1.3",
"description": "A AMap location Library for React Native apps.",
"main": "AMapLocation.js",
"scripts": {
Expand Down

0 comments on commit 62cb399

Please sign in to comment.