Skip to content

Commit 95691f6

Browse files
author
aksonov
committed
upgrade to RN0.44, bump version
1 parent 2147a32 commit 95691f6

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

Example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"jest": "jest"
99
},
1010
"dependencies": {
11-
"react": "~15.4.1",
12-
"react-native": "0.42.3",
11+
"react": "16.0.0-alpha.6",
12+
"react-native": "0.44.0",
1313
"react-native-button": "^1.8.2",
1414
"react-native-drawer": "^2.3.0",
15-
"react-native-router-flux": "^3.38.0"
15+
"react-native-router-flux": "^3.39.1"
1616
},
1717
"devDependencies": {
1818
"babel-jest": "19.0.0",

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-router-flux",
3-
"version": "3.38.1",
3+
"version": "3.39.1",
44
"description": "React Native Router using Flux architecture",
55
"repository": {
66
"type": "git",
@@ -38,11 +38,9 @@
3838
],
3939
"dependencies": {
4040
"lodash.isequal": "^4.5.0",
41-
"react": "^15.4.2",
42-
"react-addons-pure-render-mixin": "^15.4.2",
43-
"react-dom": "^15.4.2",
44-
"react-native": "^0.41.2",
45-
"react-native-experimental-navigation": "0.26.x",
41+
"react": "16.0.0-alpha.6",
42+
"react-native": "0.44.0",
43+
"react-native-experimental-navigation": "0.27.x",
4644
"react-native-tabs": "^1.0.9",
4745
"react-static-container": "1.0.1"
4846
},

src/DefaultRenderer.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*/
99
import React, {
10-
Component,
10+
PureComponent,
1111
PropTypes,
1212
} from 'react';
1313
import {
@@ -17,7 +17,6 @@ import {
1717
Dimensions,
1818
} from 'react-native';
1919
import NavigationExperimental from 'react-native-experimental-navigation';
20-
import PureRenderMixin from 'react-addons-pure-render-mixin';
2120

2221
import TabBar from './TabBar';
2322
import NavBar from './NavBar';
@@ -99,7 +98,7 @@ function leftToRight(/* NavigationSceneRendererProps */ props) {
9998
};
10099
}
101100

102-
export default class DefaultRenderer extends Component {
101+
export default class DefaultRenderer extends PureComponent {
103102

104103
static propTypes = {
105104
navigationState: PropTypes.object,
@@ -260,12 +259,6 @@ export default class DefaultRenderer extends Component {
260259
);
261260
}
262261

263-
constructor(props) {
264-
super(props);
265-
266-
this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
267-
}
268-
269262
getChildContext() {
270263
return {
271264
navigationState: this.props.navigationState,

0 commit comments

Comments
 (0)