Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 4614f55

Browse files
committed
updated react imports for RN 0.26.0 upgrade
1 parent 105536d commit 4614f55

File tree

11 files changed

+32
-28
lines changed

11 files changed

+32
-28
lines changed

Example/PhotoBrowserExample.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* https://github.com/facebook/react-native
44
*/
55

6-
import React, {
6+
import React, { Component } from 'react';
7+
import {
78
ActionSheetIOS,
89
CameraRoll,
9-
Component,
1010
ListView,
1111
StyleSheet,
1212
Navigator,

Example/ios/PhotoBrowserExample.xcodeproj/project.pbxproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,11 @@
679679
);
680680
INFOPLIST_FILE = PhotoBrowserExample/Info.plist;
681681
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
682-
OTHER_LDFLAGS = "-ObjC";
682+
OTHER_CODE_SIGN_FLAGS = "";
683+
OTHER_LDFLAGS = (
684+
"-ObjC",
685+
"-lc++",
686+
);
683687
PRODUCT_NAME = PhotoBrowserExample;
684688
};
685689
name = Debug;
@@ -695,7 +699,11 @@
695699
);
696700
INFOPLIST_FILE = PhotoBrowserExample/Info.plist;
697701
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
698-
OTHER_LDFLAGS = "-ObjC";
702+
OTHER_CODE_SIGN_FLAGS = "";
703+
OTHER_LDFLAGS = (
704+
"-ObjC",
705+
"-lc++",
706+
);
699707
PRODUCT_NAME = PhotoBrowserExample;
700708
};
701709
name = Release;

Example/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
"start": "node node_modules/react-native/local-cli/cli.js start"
77
},
88
"dependencies": {
9-
"react": "^0.14.8",
10-
"react-native": "^0.23.0",
11-
"react-native-photo-browser": "file:../",
12-
"react-native-progress": "^2.2.2"
9+
"react": "^15.0.2",
10+
"react-native": "^0.26.0",
11+
"react-native-photo-browser": "file:../"
1312
}
1413
}

lib/FullScreenContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React, {
1+
import React, { PropTypes } from 'react';
2+
import {
23
DeviceEventEmitter,
34
Dimensions,
45
ListView,
56
View,
67
ViewPagerAndroid,
78
StyleSheet,
8-
PropTypes,
99
Platform,
1010
StatusBar,
1111
TouchableWithoutFeedback,

lib/GridContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React, {
1+
import React, { PropTypes } from 'react';
2+
import {
23
Dimensions,
3-
PropTypes,
44
ListView,
55
TouchableHighlight,
66
View,

lib/bar/BarContainer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import React, {
1+
import React, { PropTypes, Component } from 'react';
2+
import {
23
Animated,
3-
Component,
44
StyleSheet,
5-
PropTypes,
65
View,
76
} from 'react-native';
87

lib/bar/BottomBar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, {
1+
import React, { PropTypes } from 'react';
2+
import {
23
Image,
34
Text,
45
StyleSheet,
5-
PropTypes,
66
TouchableOpacity,
77
View,
88
} from 'react-native';

lib/bar/TopBar.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import React, {
1+
import React, { PropTypes } from 'react';
2+
import {
23
Image,
34
Text,
4-
PropTypes,
55
StyleSheet,
66
TouchableOpacity,
7-
View,
87
Platform,
98
} from 'react-native';
109

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React, {
1+
import React, { PropTypes } from 'react';
2+
import {
23
Animated,
34
Dimensions,
4-
PropTypes,
55
ListView,
66
View,
77
StyleSheet,

lib/media/Photo.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
import React, {
2-
Component,
1+
import React, { PropTypes, Component } from 'react';
2+
import {
33
Dimensions,
44
Image,
55
StyleSheet,
66
View,
77
TouchableWithoutFeedback,
8-
PropTypes,
98
ProgressBarAndroid,
109
Platform,
1110
} from 'react-native';
1211

13-
import Progress from 'react-native-progress';
12+
import * as Progress from 'react-native-progress';
1413

1514
export default class Photo extends Component {
1615

0 commit comments

Comments
 (0)