Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-syan-image-picker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
OpenSource
react-native-syan-image-picker
Commits
0f6f1e06
Unverified
Commit
0f6f1e06
authored
Mar 31, 2018
by
少言
Committed by
GitHub
Mar 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
d8ea109f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
+22
-11
README.md
README.md
+22
-11
No files found.
README.md
View file @
0f6f1e06
...
@@ -54,16 +54,11 @@ react-native link react-native-syan-image-picker
...
@@ -54,16 +54,11 @@ react-native link react-native-syan-image-picker
##### 2、添加相册相关权限:
##### 2、添加相册相关权限:
- 项目目录->Info.plist->增加
3项
- 项目目录->Info.plist->增加
```
```
"Privacy - Camera Usage Description
Privacy - Camera Usage Description 是否允许此App使用你的相机进行拍照?
"Privacy - Location When In Use Usage Description"
Privacy - Photo Library Usage Description 请允许访问相册以选取照片
"Privacy - Photo Library Usage Description"
Privacy - Photo Library Additions Usage Description 请允许访问相册以选取照片
```
- 记得添加描述
```
Privacy - Camera Usage Description 是否允许此App使用你的相机?
Privacy - Photo Library Usage Description 是否允许此App访问你的媒体资料库?
Privacy - Location When In Use Usage Description 我们需要通过您的地理位置信息获取您周边的相关数据
Privacy - Location When In Use Usage Description 我们需要通过您的地理位置信息获取您周边的相关数据
```
```
...
@@ -72,8 +67,24 @@ react-native link react-native-syan-image-picker
...
@@ -72,8 +67,24 @@ react-native link react-native-syan-image-picker
#### Android
#### Android
##### 1、在 `build.gradle` 中添加 `maven` 配置:
##### 1、在 `build.gradle` 中添加 `maven
{ url "https://jitpack.io" }` 和`Google
` 配置:
```
gradle
```
gradle
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
allprojects {
repositories {
repositories {
mavenLocal()
mavenLocal()
...
@@ -93,7 +104,7 @@ allprojects {
...
@@ -93,7 +104,7 @@ allprojects {
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.CAMERA" />
```
```
##### 3、更新到 PictureSelector 2.2.0:
##### 3、更新到 PictureSelector 2.2.0
需要修改
:
```
gradle
```
gradle
// app/build.gradle
// app/build.gradle
...
...
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