Skip to content

Commit e00a7e5

Browse files
authored
Merge pull request #1 from cardoc/main
๋ณธ๋ž˜์˜ ๋ ˆํฌ๋กœ ์ด์ „
2 parents 07b43a1 + c44e7aa commit e00a7e5

File tree

5 files changed

+28
-23
lines changed

5 files changed

+28
-23
lines changed

โ€ŽREADME.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ React Native Multiple Image Picker enables application to pick images and videos
1717
## Installation
1818

1919
```sh
20-
npm i @baronha/react-native-multiple-image-picker
20+
npm i @ko-devHong/react-native-multiple-image-picker
2121
or
22-
yarn add @baronha/react-native-multiple-image-picker
22+
yarn add @ko-devHong/react-native-multiple-image-picker
2323
```
2424

2525
### iOS
@@ -69,15 +69,21 @@ Here are some related issues in the RN repo: [Issue 30202](https://github.com/fa
6969
7070
```xml
7171
<uses-permission android:name="android.permission.CAMERA" />
72+
<!-- request permission android version < 13 -->
7273
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
7374
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
75+
<!-- request permission android version >= 13 -->
76+
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
77+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
78+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
7479
```
80+
7581
## Usage
7682

7783
See [options](#Options)
7884

7985
```js
80-
import MultipleImagePicker from '@baronha/react-native-multiple-image-picker';
86+
import MultipleImagePicker from '@ko-devHong/react-native-multiple-image-picker';
8187
// ...
8288
const response = await MultipleImagePicker.openPicker(options);
8389
```
@@ -123,19 +129,19 @@ const response = await MultipleImagePicker.openPicker(options);
123129
| maximumMessageTitle | string | Notification | iOS | The title of the alert when the user chooses to exceed the specified number of pictures |
124130
| messageTitleButton | string | Notification | iOS | The title of button in the alert when the user chooses to exceed the specified number of pictures |
125131
| tapHereToChange | string | Tap here to change | iOS | The sub-title in navigation bar (under albums's name in iOS) |
126-
| maximumMessage | string | You have selected the maximum number of media allowed | iOS | The description of the alert when the user chooses to exceed the specified number of pictures |
127-
| maximumVideoMessage | string | You have selected the maximum number of media allowed | iOS | The description of the alert when the user chooses to exceed the specified number of videos |
132+
| maximumMessage | string | You have selected the maximum number of media allowed | iOS | The description of the alert when the user chooses to exceed the specified number of pictures |
133+
| maximumVideoMessage | string | You have selected the maximum number of media allowed | iOS | The description of the alert when the user chooses to exceed the specified number of videos |
128134

129135
#### selectedAssets (Important)
130136

131-
Get an Array value only(Only works when ```singleSelectedMode === false```). If you want React Native Multiple Image Picker to re-select previously selected images / videos, you need to add โ€œselectedAssetsโ€ in [options](#Options). Perhaps I say a little bit confusing. See [Example](https://github.com/baronha/react-native-multiple-image-picker/tree/main/example) for more details.
137+
Get an Array value only(Only works when `singleSelectedMode === false`). If you want React Native Multiple Image Picker to re-select previously selected images / videos, you need to add โ€œselectedAssetsโ€ in [options](#Options). Perhaps I say a little bit confusing. See [Example](https://github.com/baronha/react-native-multiple-image-picker/tree/main/example) for more details.
132138

133139
## Response Object
134140

135141
| Property | Type | Platform | Description |
136142
| ---------------- | :----: | :------: | :--------------------------------------------------------------------------------------------------- |
137143
| path | string | Both | Selected media's path |
138-
| fileName | string | Both | Selected media's file name |
144+
| fileName | string | Both | Selected media's file name |
139145
| localIdentifier | string | Both | Selected media's local identifier |
140146
| width | number | Both | Selected photo/video width |
141147
| height | number | Both | Selected photo/video height |

โ€Žandroid/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
}
1414

1515
dependencies {
16-
classpath 'com.android.tools.build:gradle:7.2.1'
16+
classpath 'com.android.tools.build:gradle:7.3.1'
1717
// noinspection DifferentKotlinGradleVersion
1818
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1919
}
@@ -49,10 +49,7 @@ android {
4949
lintOptions {
5050
disable 'GradleCompatible'
5151
}
52-
compileOptions {
53-
sourceCompatibility JavaVersion.VERSION_1_8
54-
targetCompatibility JavaVersion.VERSION_1_8
55-
}
52+
5653
}
5754

5855
repositories {
@@ -131,8 +128,7 @@ dependencies {
131128
// noinspection GradleDynamicVersion
132129
api 'com.facebook.react:react-native:+'
133130
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
134-
implementation 'io.github.ko-devHong:pictureselector:v2.7.3-rc09'
135-
// implementation 'io.github.lucksiege:pictureselector:v2.7.3-rc08'
131+
implementation 'io.github.ko-devHong:pictureselector:v2.8.8'
136132
// implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
137133
implementation 'com.github.bumptech.glide:glide:4.12.0'
138134
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'

โ€Žandroid/gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MultipleImagePicker_kotlinVersion=1.3.50
2-
MultipleImagePicker_compileSdkVersion=30
3-
MultipleImagePicker_buildToolsVersion=30.0.3
4-
MultipleImagePicker_targetSdkVersion=30
2+
MultipleImagePicker_compileSdkVersion=33
3+
MultipleImagePicker_buildToolsVersion=33.0.0
4+
MultipleImagePicker_targetSdkVersion=33
55
MultipleImagePicker_minSdkVersion=21
66
android.useAndroidX=true
77
android.enableJetifier=true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.reactnativemultipleimagepicker">
33
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
4+
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
5+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
6+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
47
<application android:requestLegacyExternalStorage="true" />
58
</manifest>

โ€Žpackage.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@baronha/react-native-multiple-image-picker",
3-
"version": "0.6.7",
2+
"name": "@ko-devHong/react-native-multiple-image-picker",
3+
"version": "1.0.8",
44
"description": "react-native-multiple-image-picker enables application to pick images and videos from multiple smart album in iOS/Android, similar to the current facebook app.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
@@ -37,13 +37,13 @@
3737
"ios",
3838
"android"
3939
],
40-
"repository": "https://github.com/baronha/react-native-multiple-image-picker",
41-
"author": "Baron Ha. <baronn.ha@gmail.com> (https://github.com/baronha)",
40+
"repository": "https://github.com/ko-devHong/react-native-multiple-image-picker",
41+
"author": "Ko-devHong. <hongdevelolper@gmail.com> (https://github.com/ko-devHong)",
4242
"license": "MIT",
4343
"bugs": {
44-
"url": "https://github.com/baronha/react-native-multiple-image-picker/issues"
44+
"url": "https://github.com/ko-devHong/react-native-multiple-image-picker/issues"
4545
},
46-
"homepage": "https://github.com/baronha/react-native-multiple-image-picker#readme",
46+
"homepage": "https://github.com/ko-devHong/react-native-multiple-image-picker#readme",
4747
"publishConfig": {
4848
"registry": "https://registry.npmjs.org/"
4949
},

0 commit comments

Comments
ย (0)