From 0bc15538164255bec681e13702246e0050e310b2 Mon Sep 17 00:00:00 2001 From: Barton Hammond Date: Tue, 22 Mar 2016 10:53:41 -0500 Subject: [PATCH] update to RN 22 --- package.json | 26 ++++++------ src/snowflake.js | 102 ++++++++++++++++++++--------------------------- 2 files changed, 56 insertions(+), 72 deletions(-) diff --git a/package.json b/package.json index a32225fb..40c1d773 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "snowflake", - "version": "0.0.12", + "version": "0.0.13", "private": true, "jest": { "scriptPreprocessor": "jestSupport/scriptPreprocess.js", @@ -47,27 +47,27 @@ "apsl-react-native-button": "git+https://git@github.com/bartonhammond/react-native-button.git", "immutable": "^3.7.6", "key-mirror": "^1.0.1", - "react-native": "^0.18.1", + "react-native": "^0.22.2", "react-native-gifted-spinner": "0.0.3", - "react-native-navbar": "^1.2.1", - "react-native-router-flux": "^2.3.1", + "react-native-navbar": "^1.4.0", + "react-native-router-flux": "^3.1.5", "react-native-simple-store": "^0.1.0", - "react-native-simpledialog-android": "^1.0.2", - "react-native-vector-icons": "^1.1.0", - "react-redux": "^4.1.1", - "redux": "^3.1.2", - "redux-thunk": "^1.0.3", + "react-native-simpledialog-android": "^1.0.3", + "react-native-vector-icons": "^1.3.2", + "react-redux": "^4.4.1", + "redux": "^3.3.1", + "redux-thunk": "^2.0.1", "regenerator": "^0.8.42", - "tcomb-form-native": "^0.3.3", + "tcomb-form-native": "^0.4.0", "underscore": "^1.8.3", "validate.js": "^0.9.0" }, "devDependencies": { - "babel-core": "^6.4.5", - "babel-jest": "^6.0.1", + "babel-core": "^6.7.2", + "babel-jest": "^9.0.3", "docker": "^0.2.14", "istanbul": "^0.4.2", - "jest-cli": "^0.8.2", + "jest-cli": "^0.9.2", "react": "^0.14.7", "react-addons-test-utils": "^0.14.7" } diff --git a/src/snowflake.js b/src/snowflake.js index c34a911e..524964ee 100644 --- a/src/snowflake.js +++ b/src/snowflake.js @@ -26,7 +26,7 @@ import React, { */ import RNRF, { Route, - Schema, + Scene, TabBar} from 'react-native-router-flux'; /** @@ -90,7 +90,7 @@ import profileInitialState from './reducers/profile/profileInitialState'; /** * The version of the app but not displayed yet */ -var VERSION='0.0.12'; +var VERSION='0.0.13'; /** * @@ -112,16 +112,16 @@ function getInitialState() { * * Displays the icon for the tab w/ color dependent upon selection */ -class TabIcon extends React.Component { - render() { - var color = this.props.selected ? 'FF3366' : 'FFB3B3'; +class TabIcon extends React.Component { + render(){ + var color = this.props.selected ? '#FF3366' : '#FFB3B3'; return ( - - {this.props.title} - - ); + + {this.props.title} + + ); } } @@ -154,71 +154,55 @@ export default function native(platform) { return ( - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - + + );