Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-amap3d
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-amap3d
Commits
4c44f57d
Commit
4c44f57d
authored
Apr 17, 2018
by
7c00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除 iOS 手动配置说明
parent
a414480a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
README.md
README.md
+7
-16
No files found.
README.md
View file @
4c44f57d
...
...
@@ -31,24 +31,19 @@ react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS,
### 安装依赖
```
$ npm i react-native-amap3d
```
或
```
$ yarn add react-native-amap3d
npm i react-native-amap3d
```
### 项目配置
#### Android
```
$
react-native link react-native-amap3d
react-native link react-native-amap3d
```
#### iOS
推荐使用 CocoaPods,需要注意 iOS 项目不要
`react-native link react-native-amap3d`
, 不然会引入错误的依赖,导致编译失败。
在
`ios`
目录下新建文件
`Podfile`
:
你需要使用 CocoaPods,
在
`ios`
目录下新建文件
`Podfile`
:
```
ruby
platform
:ios
,
'8.0'
# The target name is most likely the name of your project.
...
...
@@ -80,11 +75,9 @@ end
然后运行:
```
$
pod install
pod install
```
如果你不想使用 CocoaPods,手动配置请参考:
[
手动部署
](
http://lbs.amap.com/api/ios-sdk/guide/create-project/manual-configuration
)
。
### 添加高德 Key
#### Android
1.
[
获取高德 Key
](
http://lbs.amap.com/api/android-sdk/guide/create-project/get-key
)
。
...
...
@@ -165,15 +158,13 @@ const coordinate = {
[examples](https://github.com/qiuxiang/react-native-amap3d/tree/master/example/examples)
#### Android
```
bash
$ yarn
$ yarn run-android
yarn run-android
```
#### iOS
```
bash
$ yarn
$ cd ios && pod install && cd ..
$ yarn run-ios
cd ios && pod install && cd ..
yarn run-ios
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment