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
8046be92
Commit
8046be92
authored
Jun 06, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新示例 README
parent
88ab8dc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
README.md
example/README.md
+10
-12
No files found.
example/README.md
View file @
8046be92
##
iOS
##
Android
现有的 react-native 地图 SDK 封装都是把 framework 包含进来,
`npm install`
之后需要开发者进行一系列繁琐又容易出错的手动配置。
事实上,官方文档是鼓励用 cocoapods 进行自动安装和配置的,
然而 react-native 并没有使用 cocoapods,这就需要我们自己新建 Podfile,
该示例的
[
Podfile
](
https://github.com/qiuxiang/react-native-amap3d/blob/develop/example/ios/Podfile
)
可以作为参考。对于 iOS 项目,不需要
`react-native link`
,而需要:
1.
在
`ios`
目录下运行
`pod install`
2.
打开 Example.xcworkspace,选择
`Example`
target,
`run`
强烈推荐使用 npm@5+ 进行安装
## Android
```
$ npm i
$ npm run init
$ npm run android
```
## iOS
如果是新项目,需要运行
`react-native link react-native-amap3d`
,
这个示例的 gradle 已经设置好,直接运行
`npm run android`
就可以了。
暂不支持
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