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

Commit

Permalink
updated react imports for RN 0.26.0 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
halilb committed May 20, 2016
1 parent 105536d commit 4614f55
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 28 deletions.
4 changes: 2 additions & 2 deletions Example/PhotoBrowserExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* https://github.com/facebook/react-native
*/

import React, {
import React, { Component } from 'react';
import {
ActionSheetIOS,
CameraRoll,
Component,
ListView,
StyleSheet,
Navigator,
Expand Down
12 changes: 10 additions & 2 deletions Example/ios/PhotoBrowserExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,11 @@
);
INFOPLIST_FILE = PhotoBrowserExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = "-ObjC";
OTHER_CODE_SIGN_FLAGS = "";
OTHER_LDFLAGS = (
"-ObjC",
"-lc++",
);
PRODUCT_NAME = PhotoBrowserExample;
};
name = Debug;
Expand All @@ -695,7 +699,11 @@
);
INFOPLIST_FILE = PhotoBrowserExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = "-ObjC";
OTHER_CODE_SIGN_FLAGS = "";
OTHER_LDFLAGS = (
"-ObjC",
"-lc++",
);
PRODUCT_NAME = PhotoBrowserExample;
};
name = Release;
Expand Down
7 changes: 3 additions & 4 deletions Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "^0.14.8",
"react-native": "^0.23.0",
"react-native-photo-browser": "file:../",
"react-native-progress": "^2.2.2"
"react": "^15.0.2",
"react-native": "^0.26.0",
"react-native-photo-browser": "file:../"
}
}
4 changes: 2 additions & 2 deletions lib/FullScreenContainer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, {
import React, { PropTypes } from 'react';
import {
DeviceEventEmitter,
Dimensions,
ListView,
View,
ViewPagerAndroid,
StyleSheet,
PropTypes,
Platform,
StatusBar,
TouchableWithoutFeedback,
Expand Down
4 changes: 2 additions & 2 deletions lib/GridContainer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {
import React, { PropTypes } from 'react';
import {
Dimensions,
PropTypes,
ListView,
TouchableHighlight,
View,
Expand Down
5 changes: 2 additions & 3 deletions lib/bar/BarContainer.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, {
import React, { PropTypes, Component } from 'react';
import {
Animated,
Component,
StyleSheet,
PropTypes,
View,
} from 'react-native';

Expand Down
4 changes: 2 additions & 2 deletions lib/bar/BottomBar.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, {
import React, { PropTypes } from 'react';
import {
Image,
Text,
StyleSheet,
PropTypes,
TouchableOpacity,
View,
} from 'react-native';
Expand Down
5 changes: 2 additions & 3 deletions lib/bar/TopBar.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, {
import React, { PropTypes } from 'react';
import {
Image,
Text,
PropTypes,
StyleSheet,
TouchableOpacity,
View,
Platform,
} from 'react-native';

Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {
import React, { PropTypes } from 'react';
import {
Animated,
Dimensions,
PropTypes,
ListView,
View,
StyleSheet,
Expand Down
7 changes: 3 additions & 4 deletions lib/media/Photo.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import React, {
Component,
import React, { PropTypes, Component } from 'react';
import {
Dimensions,
Image,
StyleSheet,
View,
TouchableWithoutFeedback,
PropTypes,
ProgressBarAndroid,
Platform,
} from 'react-native';

import Progress from 'react-native-progress';
import * as Progress from 'react-native-progress';

export default class Photo extends Component {

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-photo-browser",
"version": "0.2.0",
"version": "0.2.1",
"description": "Local and remote photo browser with captions, selections and grid view support for react native.",
"license": "MIT",
"keywords": [
Expand All @@ -25,6 +25,6 @@
"author": "Halil Bilir <[email protected]>",
"homepage": "https://github.com/halilb/react-native-photo-browser#readme",
"dependencies": {
"react-native-progress": "^2.2.2"
"react-native-progress": "^3.0.0"
}
}

0 comments on commit 4614f55

Please sign in to comment.