Skip to content

Commit 69abd4a

Browse files
authored
Merge pull request #102 from jeanpan/feat/community
break(cameraroll): consume cameraroll from @react-native-community
2 parents b03b3b1 + 987335e commit 69abd4a

File tree

7 files changed

+35
-11
lines changed

7 files changed

+35
-11
lines changed

Example/ios/Podfile.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ PODS:
182182
- React-cxxreact (= 0.61.4)
183183
- React-jsi (= 0.61.4)
184184
- React-jsinspector (0.61.4)
185+
- react-native-cameraroll (1.3.0):
186+
- React
185187
- React-RCTActionSheet (0.61.4):
186188
- React-Core/RCTActionSheetHeaders (= 0.61.4)
187189
- React-RCTAnimation (0.61.4):
@@ -236,6 +238,7 @@ DEPENDENCIES:
236238
- React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
237239
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
238240
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
241+
- "react-native-cameraroll (from `../node_modules/@react-native-community/cameraroll`)"
239242
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
240243
- React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
241244
- React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
@@ -282,6 +285,8 @@ EXTERNAL SOURCES:
282285
:path: "../node_modules/react-native/ReactCommon/jsiexecutor"
283286
React-jsinspector:
284287
:path: "../node_modules/react-native/ReactCommon/jsinspector"
288+
react-native-cameraroll:
289+
:path: "../node_modules/@react-native-community/cameraroll"
285290
React-RCTActionSheet:
286291
:path: "../node_modules/react-native/Libraries/ActionSheetIOS"
287292
React-RCTAnimation:
@@ -321,6 +326,7 @@ SPEC CHECKSUMS:
321326
React-jsi: ca921f4041505f9d5197139b2d09eeb020bb12e8
322327
React-jsiexecutor: 8dfb73b987afa9324e4009bdce62a18ce23d983c
323328
React-jsinspector: d15478d0a8ada19864aa4d1cc1c697b41b3fa92f
329+
react-native-cameraroll: 463aff54e37cff27ea76eb792e6f1fa43b876320
324330
React-RCTActionSheet: 7369b7c85f99b6299491333affd9f01f5a130c22
325331
React-RCTAnimation: d07be15b2bd1d06d89417eb0343f98ffd2b099a7
326332
React-RCTBlob: 8e0b23d95c9baa98f6b0e127e07666aaafd96c34

Example/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
{
22
"name": "Example",
33
"version": "0.0.1",
4-
"private": true,
5-
"scripts": {
6-
"android": "react-native run-android",
7-
"ios": "react-native run-ios",
8-
"start": "react-native start",
9-
"test": "jest",
10-
"lint": "eslint ."
11-
},
124
"dependencies": {
5+
"@react-native-community/cameraroll": "^1.3.0",
136
"react": "16.9.0",
147
"react-native": "0.61.4"
158
},
@@ -25,5 +18,13 @@
2518
},
2619
"jest": {
2720
"preset": "react-native"
21+
},
22+
"private": true,
23+
"scripts": {
24+
"android": "react-native run-android",
25+
"ios": "react-native run-ios",
26+
"lint": "eslint .",
27+
"start": "react-native start",
28+
"test": "jest"
2829
}
2930
}

Example/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,11 @@
842842
"@types/istanbul-reports" "^1.1.1"
843843
"@types/yargs" "^13.0.0"
844844

845+
"@react-native-community/cameraroll@^1.3.0":
846+
version "1.3.0"
847+
resolved "https://registry.yarnpkg.com/@react-native-community/cameraroll/-/cameraroll-1.3.0.tgz#a340334440f4d08280da839130ef51c931b07483"
848+
integrity sha512-QJl9N34euvGU7s/Gn6jhsqi70O4SmxFxuy+yBnW7ehE8qtPYO91gyLLrtiWdTfYvuVCUNvX/G0LKJQLm8SojAA==
849+
845850
"@react-native-community/cli-debugger-ui@^3.0.0":
846851
version "3.0.0"
847852
resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-3.0.0.tgz#d01d08d1e5ddc1633d82c7d84d48fff07bd39416"

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ Requires `react-native >=0.43.0`
1010

1111

1212
## Add to Project
13-
* Make sure node_modules/react-native/Libraries/CameraRoll/RCTCameraRoll.xcodeproj has been imported to project libraries by following the [libraries linking instructions](https://facebook.github.io/react-native/docs/linking-libraries-ios.html). Don't forget to link the `libRCTCamera.a` into `Link Binary with Binaries` on your target's Build Phases.
1413
* Install component through npm
1514
```
1615
$ npm install react-native-camera-roll-picker --save
1716
```
1817

18+
* Install CameraRoll from @react-native-community
19+
```
20+
$ npm install @react-native-community/cameraroll
21+
```
22+
1923
* Require component
2024
```
2125
import CameraRollPicker from 'react-native-camera-roll-picker';

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React, { Component } from 'react';
22
import {
3-
CameraRoll,
43
Platform,
54
StyleSheet,
65
View,
76
Text,
87
FlatList,
98
ActivityIndicator,
109
} from 'react-native';
10+
import CameraRoll from "@react-native-community/cameraroll";
1111
import PropTypes from 'prop-types';
1212
import Row from './Row';
1313

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
{
22
"name": "react-native-camera-roll-picker",
33
"description": "A React Native component providing images selection from camera roll ",
4-
"version": "1.3.0",
4+
"version": "2.0.0",
55
"author": "jeanpan",
66
"bugs": {
77
"url": "https://github.com/jeanpan/react-native-camera-roll-picker/issues"
88
},
99
"dependencies": {
1010
"prop-types": "^15.6.0"
1111
},
12+
"devDependencies": {
13+
"@react-native-community/cameraroll": "^1.3.0"
14+
},
1215
"homepage": "https://github.com/jeanpan/react-native-camera-roll-picker#readme",
1316
"keywords": [
1417
"cameraroll",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# yarn lockfile v1
33

44

5+
"@react-native-community/cameraroll@^1.3.0":
6+
version "1.3.0"
7+
resolved "https://registry.yarnpkg.com/@react-native-community/cameraroll/-/cameraroll-1.3.0.tgz#a340334440f4d08280da839130ef51c931b07483"
8+
integrity sha512-QJl9N34euvGU7s/Gn6jhsqi70O4SmxFxuy+yBnW7ehE8qtPYO91gyLLrtiWdTfYvuVCUNvX/G0LKJQLm8SojAA==
9+
510
"js-tokens@^3.0.0 || ^4.0.0":
611
version "4.0.0"
712
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"

0 commit comments

Comments
 (0)