Skip to content

Commit d67d700

Browse files
committed
bump version / fix: usedCameraButton props(#24) / update README.
1 parent df94ac3 commit d67d700

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,10 @@ Get an Array value only. If you want React Native Multiple Image Picker to re-se
134134
| creationDate | string | iOS | UNIX timestamp when image was created |
135135

136136
## To Do
137-
- [ ] (Bug) Record Video (iOS)
138-
- [ ] Video Compression
139-
- [ ] iCloud...
137+
- [ ] Typescript.
138+
- [ ] (Bug) Record Video (iOS).
139+
- [ ] Video Compression.
140+
- [ ] iCloud.
140141

141142
## Performance
142143

android/src/main/java/com/reactnativemultipleimagepicker/MultipleImagePickerModule.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class MultipleImagePickerModule(reactContext: ReactApplicationContext) : ReactCo
4040
private var isPreview: Boolean = true
4141
private var isExportThumbnail: Boolean = false
4242
private var maxVideo: Int = 20
43+
private var isCamera: Boolean = true
4344

4445
@ReactMethod
4546
fun openPicker(options: ReadableMap?, promise: Promise): Unit {
@@ -62,6 +63,7 @@ class MultipleImagePickerModule(reactContext: ReactApplicationContext) : ReactCo
6263
.setPictureStyle(mPictureParameterStyle)
6364
.isPreviewImage(isPreview)
6465
.isPreviewVideo(isPreview)
66+
.isCamera(isCamera)
6567
.isReturnEmpty(true)
6668
.selectionMode(if (singleSelectedMode) PictureConfig.SINGLE else PictureConfig.MULTIPLE)
6769
.forResult(object : OnResultCallbackListener<Any?> {
@@ -111,6 +113,7 @@ class MultipleImagePickerModule(reactContext: ReactApplicationContext) : ReactCo
111113
isExportThumbnail = options.getBoolean("isExportThumbnail")
112114
maxVideo = options.getInt("maxVideo")
113115
mPictureParameterStyle = getStyle(options)
116+
isCamera = options.getBoolean("usedCameraButton")
114117
}
115118
}
116119

example/src/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default function App() {
1414
isExportThumbnail: true,
1515
maxVideo: 1,
1616
singleSelectedMode: true,
17+
usedCameraButton: false,
1718
// selectedColor: '#f9813a',
1819
});
1920
console.log('done: ', response);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@baronha/react-native-multiple-image-picker",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
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",

0 commit comments

Comments
 (0)