Skip to content

Commit

Permalink
upgrade to RN0.44, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
aksonov committed May 13, 2017
1 parent 2147a32 commit 95691f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"jest": "jest"
},
"dependencies": {
"react": "~15.4.1",
"react-native": "0.42.3",
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-button": "^1.8.2",
"react-native-drawer": "^2.3.0",
"react-native-router-flux": "^3.38.0"
"react-native-router-flux": "^3.39.1"
},
"devDependencies": {
"babel-jest": "19.0.0",
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-router-flux",
"version": "3.38.1",
"version": "3.39.1",
"description": "React Native Router using Flux architecture",
"repository": {
"type": "git",
Expand Down Expand Up @@ -38,11 +38,9 @@
],
"dependencies": {
"lodash.isequal": "^4.5.0",
"react": "^15.4.2",
"react-addons-pure-render-mixin": "^15.4.2",
"react-dom": "^15.4.2",
"react-native": "^0.41.2",
"react-native-experimental-navigation": "0.26.x",
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-experimental-navigation": "0.27.x",
"react-native-tabs": "^1.0.9",
"react-static-container": "1.0.1"
},
Expand Down
11 changes: 2 additions & 9 deletions src/DefaultRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
*/
import React, {
Component,
PureComponent,
PropTypes,
} from 'react';
import {
Expand All @@ -17,7 +17,6 @@ import {
Dimensions,
} from 'react-native';
import NavigationExperimental from 'react-native-experimental-navigation';
import PureRenderMixin from 'react-addons-pure-render-mixin';

import TabBar from './TabBar';
import NavBar from './NavBar';
Expand Down Expand Up @@ -99,7 +98,7 @@ function leftToRight(/* NavigationSceneRendererProps */ props) {
};
}

export default class DefaultRenderer extends Component {
export default class DefaultRenderer extends PureComponent {

static propTypes = {
navigationState: PropTypes.object,
Expand Down Expand Up @@ -260,12 +259,6 @@ export default class DefaultRenderer extends Component {
);
}

constructor(props) {
super(props);

this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
}

getChildContext() {
return {
navigationState: this.props.navigationState,
Expand Down

0 comments on commit 95691f6

Please sign in to comment.